jaredhanson / passport-local

Username and password authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-local/?utm_source=github&utm_medium=referral&utm_campaign=passport-local&utm_content=about
MIT License
2.74k stars 498 forks source link

Made strategy name an option. #134

Closed mattdeluco closed 8 years ago

mattdeluco commented 8 years ago

Allows for multiple local strategies.

In my case, I've created one username/password strategy, and one username/email token strategy (passwordless).

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 97.619% when pulling 705d87785abd3f2cbde8eb042acaf91e154903d5 on mattdeluco:master into c5a349b1fce71c51d66f78f8fc3e3861444b9a04 on jaredhanson:master.

jaredhanson commented 8 years ago

This can be done when useing it in Passport.js:

passport.use('local-something', new LocalStrategy(...));