nest-passport | Nest authentication example using passport strategies | Authentication library
kandi X-RAY | nest-passport Summary
kandi X-RAY | nest-passport Summary
The Nest framework + Passport.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nest-passport
nest-passport Key Features
nest-passport Examples and Code Snippets
Community Discussions
Trending Discussions on nest-passport
QUESTION
So I replaced ExpressJS with Fastify, but my problem is Nest-Passport doesn't support fastify, do we have alternative for Nest-Passport? or any solutions how to secure RestAPI in nestJS using token?
...ANSWER
Answered 2020-Oct-29 at 17:07There's no immediate Fastify NestJJS authentication package I'm aware of (I'm sure there's something out there), but I do have a sample of JWT authentication with Fastify and NestJS without Passport. The idea is to make use of Nest's @nestjs/jwt
package or just jsonwebtoken
directly, and create the auth tokens with that instead of delegating to Passport. This is actually the kind of approach I prefer, as I find Passport to be a bit too mystical sometimes.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nest-passport
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page