Implement JWT auth in NestJS the idiomatic way
Cuándo usarlo: You need JWT with refresh tokens and don't want to wire up the passport modules from scratch.
Requisitos previos
- NestJS project — nest new my-app
Flujo
-
Request the implementationUse the NestJS skill. Add JWT auth with refresh tokens to this project.✓ Copiado→ Claude loads the NestJS reference and produces idiomatic module structure (AuthModule, JwtStrategy, guards)
-
Add testsNow add e2e tests for the auth endpoints using the testing skill.✓ Copiado→ Jest + supertest test files following NestJS conventions
Resultado: Production-pattern JWT auth with tests.
Errores comunes
- Claude mixes NestJS decorators with Express middleware patterns — Insist on 'NestJS idioms only — no raw Express'