bradtraversy / node_passport_login

Node.js login, registration and access control using Express and Passport
1.74k stars 1.29k forks source link

Login #70

Open jymo-scientist opened 4 years ago

jymo-scientist commented 4 years ago

Unknown authentication strategy 'local' please help

monkey-cat commented 4 years ago

You need have installed passport and passport-local, there packages are in package,json :

https://github.com/bradtraversy/node_passport_login/blob/eda60b883bc9ec546eb7096cfb8cd3ddfdf1de56/package.json#L21-L22

You just need run npm install after clone the repo

kawaii-kitsune commented 3 years ago

have the same problem and I'm devastated

geoff-mdt commented 2 years ago

This line in my app.js solved it all !

require('./config/passport')(passport);

Abhay2358 commented 2 years ago

Error: Unknown authentication strategy "local" tried all methods didn't work plz help

mv0076 commented 2 years ago

Error: Unknown authentication strategy "local" tried all methods didn't work plz help

same problem