jaredhanson/passport-oauth — pull request #9 by leods92 (2012-09-01 01:17:45+00:00)
Title: Added token refreshing flow to passport.authenticate().

From a refresh token clients may get a new unexpired access token.
For that, the code sent must be the refresh token (previously received) and the grant_type should be "refresh_token".

My modifications make that possible in a simple way without modifying the passport-oauth API.
Also, I maintained the author's style.

This will be useful for many.