I want to store authType in a config file and change it at will.
It means that the parameter is always specified in my call to passport.authenticate(''):
// Wrong: authType is hardcoded.
passport.authenticate('facebook', { authType: 'rerequest', scope: config.social.facebook.scope }));
// Right: authType comes from config
passport.authenticate('facebook', { authType: config.authType, scope: config.scope }));
So, when authType is not rerequest what is it? So your plugin wouldn't throw on wrong values
I want to store
authType
in a config file and change it at will. It means that the parameter is always specified in my call topassport.authenticate('')
:So, when
authType
is notrerequest
what is it? So your plugin wouldn't throw on wrong values