nest-auth-example
ecommerce-backend
nest-auth-example | ecommerce-backend | |
---|---|---|
3 | 1 | |
349 | 46 | |
- | - | |
9.4 | 0.0 | |
3 days ago | almost 2 years 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
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
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.
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
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
auth-nest-graphql - nest on top of fastify with mongo and graphql passwort jwt and bcrypt
nestjs-starter-rest-api - NestJS Starter Kit. Monolithic Backend. REST API.
nestjs-cerbos - This demo project demonstrates how to use Cerbos in NestJS as an interceptor to validate requests based on policies defined in Cerbos.
rest-api-typescript
nestjs-account-graphql - NestJS and GraphQL based project simulating an account service with permission control
nestjs-auth0 - An example NestJS application that uses Auth0 via Passport for authentication.
anteon - Anteon (formerly Ddosify) - Effortless Kubernetes Monitoring and Performance Testing. Available on CLI, Self-Hosted, and Cloud