Add support for refreshing an access token #92

Merged
merged 1 commit into from Apr 24, 2012

Projects

None yet

3 participants

@lukebaker

This adds support for refreshing an access token via oauth2.getOAuthAccessToken(). The first parameter sent to the method can either be a authorization code or a refresh token. If among the parameters is grant_type and it is equal to 'refresh_token', then change the parameter name of the code to 'refresh_token' instead of 'code'.

http://tools.ietf.org/html/draft-ietf-oauth-v2-16#section-6

https://developers.google.com/accounts/docs/OAuth2InstalledApp#refresh

@mm-jclark

Also need same feature for oauth v1 using oauth_session_handle

@ciaranj ciaranj merged commit e1a8422 into ciaranj:master Apr 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment