Techiio-author
Started by Lidig TinilaloOct 1, 2021

Open
Why using passport local strategy coupled with jwt strategy

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

I'm trying to build a NestJS API and wanna learn the best practices to do it.

So I was wondering why the documentation of Nest JS

https://docs.nestjs.com/security/authentication

is providing an example of authentication with coupling passport-local and passport-jwt strategies?

Couldn't it be possible to just use the passport-jwt?

If the answer is, yes but it's not a good practice, could you provide explanations.

And if the answer is yes and it's the best practice, do you have any idea why they put an example that is not using best practices on such an important subject like authentication?

0 Replies

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance