We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
the example in documentation is
passport.use(function(profile, done){ User.findOrCreate({ waId: profile.id }, function (err, user) { done(err, user); }); }));
but passport.use() expects name, strategy arguments ( or alternatively strategy, with strategy.name defined ) and otherwise throws exception
passport.use()
name, strategy
strategy
strategy.name
Looks like correct example should look like this:
passport.use(new WindowsStrategy({ integrated: true }, function(profile, done){ User.findOrCreate({ waId: profile.id }, function (err, user) { done(err, user); }); }));
The text was updated successfully, but these errors were encountered:
I was getting the following error when executing the code from the Readme (as per your first example):
"Error: Authentication strategies must have a name"
I solved the issue by providing a name in the passport.use() function, such as:
passport.use('WindowsAuthentication', function(profile, done){
However, I then started receiving a different error:
TypeError: strategy.authenticate is not a function
Following your second example seems to have fixed both errors for me.
Sorry, something went wrong.
No branches or pull requests
Hi,
the example in documentation is
but
passport.use()
expectsname, strategy
arguments ( or alternativelystrategy
, withstrategy.name
defined ) and otherwise throws exceptionLooks like correct example should look like this:
The text was updated successfully, but these errors were encountered: