Open sidorares opened 8 years ago
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.
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: