Implement JWT auth in NestJS the idiomatic way
언제 쓸까: You need JWT with refresh tokens and don't want to wire up the passport modules from scratch.
사전 조건
- NestJS project — nest new my-app
흐름
-
Request the implementationUse the NestJS skill. Add JWT auth with refresh tokens to this project.✓ 복사됨→ 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.✓ 복사됨→ Jest + supertest test files following NestJS conventions
결과: Production-pattern JWT auth with tests.
함정
- Claude mixes NestJS decorators with Express middleware patterns — Insist on 'NestJS idioms only — no raw Express'