Nest: how to use passport-local

Created on 15 May 2018  Â·  7Comments  Â·  Source: nestjs/nest

I'm submitting a...


[ ] Regression 
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior


i want to auth with passport-local, what's the best practice?

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Environment


Nest version: 5.0.0


For Tooling issues:
- Node version: XX  
- Platform:  

Others:

3rd-party 🚀 type question 🙌

Most helpful comment

want a document

All 7 comments

you can check my repository, it uses passport-local

https://github.com/bojidaryovchev/nest-angular

go to src/server/modules/auth and check it out, we got passport-local, passport-jwt, passport-facebook-token, passport-twitter-token and passport-google-token strategies setup

I am currently updating to Angular v6.0.1, RxJS v6.0.0, Webpack v4.8.3 and NestJS v5.0.0 so today I will push the changes at some point

This is not documented so far.

want a document

For me its not clear how to provide serialize/deserialize functions for passport?

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings