Skip to content
Browse files

limit options to post and get and default to get

  • Loading branch information...
1 parent 92fa432 commit 0e0125bb6ba821b57107c91deecc017a6288df0c @edgji edgji committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/passport-configurator.js
View
2 lib/passport-configurator.js
@@ -169,7 +169,7 @@ PassportConfigurator.prototype.configureProvider = function(name, options) {
var authPath = options.authPath || ((link ? '/link/' : '/auth/') + name);
var callbackPath = options.callbackPath || ((link ? '/link/' : '/auth/') +
name + '/callback');
- var callbackHTTPMethod = options.callbackHTTPMethod || 'get';
+ var callbackHTTPMethod = options.callbackHTTPMethod !== 'post' ? 'get' : 'post';
// remember returnTo position, set by ensureLoggedIn
var successRedirect = function(req){

0 comments on commit 0e0125b

Please sign in to comment.
Something went wrong with that request. Please try again.