ciaranj/node-oauth — pull request #92 by lukebaker (2012-03-14 02:24:30+00:00)
Title: Add support for refreshing an access token

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