ecommerce-backend
nest-auth-example
Our great sponsors
ecommerce-backend | nest-auth-example | |
---|---|---|
1 | 3 | |
46 | 347 | |
- | - | |
0.0 | 9.4 | |
almost 2 years ago | 1 day 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.
ecommerce-backend
-
Implement Refresh Token Automatic Reuse Detection without cluttering your database
To implement Refresh Token Rotation Automatic Reuse Detection without storing all refresh tokens descending from the original one you can create a tokenFamily property in your database model and check for unregistered descendants. I did not go into full details on how I implemented the whole authentication process in this article, but if you want you can check the source code in the project's repository in GitHub
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
What are some alternatives?
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
artillery - Load testing at cloud-scale. Serverless & distributed out-of-the-box. Load test with Playwright. Load test HTTP APIs, GraphQL, WebSocket, and more. Use any Node.js module. Never fail to scale with Artillery!
nestjs-auth-rbac-starter - NestJS starter template with user authentication and role based access control for GraphQL
fakeshop-api - Minimal API RESTful with MongoDB and tested with Jest
auth-nest-graphql - nest on top of fastify with mongo and graphql passwort jwt and bcrypt
nestjs-cerbos - This demo project demonstrates how to use Cerbos in NestJS as an interceptor to validate requests based on policies defined in Cerbos.
nestjs-starter-rest-api - NestJS Starter Kit. Monolithic Backend. REST API.
nestjs-account-graphql - NestJS and GraphQL based project simulating an account service with permission control
rest-api-typescript
nestjs-auth0 - An example NestJS application that uses Auth0 via Passport for authentication.
ddosify - Effortless Kubernetes Monitoring and Performance Testing. Available on CLI, Self-Hosted, and Cloud