nest-auth-example
passport
nest-auth-example | passport | |
---|---|---|
3 | 2 | |
349 | 476 | |
- | 0.0% | |
9.4 | 9.5 | |
2 days ago | 6 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nest-auth-example
-
How to perform parameter validation before JWT authentication in NestJS guard?
I also referenced the implementation of the LocalStrategy from https://github.com/leosuncin/nest-auth-example, which is a great project.
-
How do you stress test?
I've used k6 https://github.com/leosuncin/nest-auth-example/tree/master/stress-test and artillery https://github.com/leosuncin/fakeshop-api/blob/master/performance-test.yml
passport
-
NextAuth with external API that provides access and refresh JWT HttpOnly cookies
/signin sets the Access- (Max-Age: 240) and Refresh token cookie (Max-Age: 60000) /refresh sets a new Access token Cookie The UseGuards use the Passport 'jwt' and 'jwt-refresh-token' guards
-
Setting Up Sessions with NestJS, Passport, and Redis
Like most @nestjs/ packages, the @nestjs/passport package is mostly a thin wrapper around passport, but Nest does do some cool things with the passport package that I think are worth mentioning. First, the AuthGuard mixin. At first glance, this mixin may look a little intimidating, but let's take it chunk by chunk.
What are some alternatives?
artillery - The complete load testing platform. Everything you need for production-grade load tests. Serverless & distributed. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module.
passport-magic-login - Passwordless authentication with magic links for Passport.js.
fakeshop-api - Minimal API RESTful with MongoDB and tested with Jest
nestjs-auth-rbac-starter - NestJS starter template with user authentication and role based access control for GraphQL
ecommerce-backend - E-Commerce API to practice NestJS and Prisma ORM
auth-nest-graphql - nest on top of fastify with mongo and graphql passwort jwt and bcrypt
-Building-a-mongodb-migration-system-for-NestJS-with-mongoose - A dev.to article on NestJS, mongoose and database migrations!
nestjs-starter-rest-api - NestJS Starter Kit. Monolithic Backend. REST API.
jwt - JWT utilities module based on the jsonwebtoken package 🔓
rest-api-typescript
nestjs-ioredis - IORedis module for Nest