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.
Reference
Reference
Object
Object
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.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/OAuth2/Session.html