ciaranj / connect-auth

Authentication middleware for connect.
MIT License
813 stars 114 forks source link

add option to force user re-approval of app in the google2 strategy #127

Closed ozkatz closed 11 years ago

ozkatz commented 11 years ago

as per https://developers.google.com/accounts/docs/OAuth2WebServer#offline the only way to regenerate a refresh_token (for offline use), is to force the user to re-approve the app. This commit adds the optional "forceApproval" option. If present and is true, it will trigger the display of the approval prompt to the user.