An OAuth2 session makes it easy to implement APIs that need to refresh an access token once its expired before executing an HTTP request.
Creates an OAuth2::Session.
Authenticates an HTTP::Client, refreshing the access token if it is expired.
Creates an OAuth2::Session.
Params:
Authenticates an HTTP::Client, refreshing the access token if it is expired.
Invoke this method on an HTTP::Client before executing an HTTP request.