set `force_reapprove` parameter during authorization
Closed this issue · 1 comments
hassansin commented
Hi,
I need to set the force_reapprove
parameter during authorization. But couldn't find any way to set this. Is it possible to set extra parameters with passport.js?
hassansin commented
nevermind. Found out how to add extra authorization parameters:
var DropboxStrategy = require('passport-dropbox-oauth2').Strategy;
DropboxStrategy.prototype.authorizationParams = function(options){
options.force_reapprove = true;
return options;
};