The Only Way to Handle Refresh Tokens in NestJS (Production Guide) E-7
43 min979 views
About this video
Fifteen-minute tokens are safer, but nobody wants to log in four times an hour. Refresh tokens square that circle, and this episode builds the whole flow.
We add rotating refresh tokens with their own secret and TTL, build Passport JWT strategies and the JwtAuthGuard, write the CurrentUser decorator, and finish with refresh and logout endpoints. Rotation, expiry, and revocation are all covered, not hand-waved.
Subscribe to Code with Jay and keep building.
Keep learning NestJS
Every free video, mini course and project-based course on NestJS in one place, in the order that makes sense.
More free videos
All videos
Duration 18:52NestJSNestJS Auth Part 3: Roles Decorator, RolesGuard and Seller-Only Routes: E9
811 views · Sep 20, 2026
Duration 45:47NestJSNestJS Unit Testing with Jest: Mock PrismaService and Test JWT Auth e8
1K views · Sep 6, 2026
Duration 1:20:41NestJSHow to Build an AI Shopping Agent with NestJS (Tool Calling + Guardrails) – Ep 13
746 views · Oct 18, 2026
Duration 1:13:03NestJSBuild AI Chat with Semantic Search in NestJS (Streaming + Smart Router) – Ep 12
659 views · Oct 11, 2026
Duration 32:31NestJSSemantic Search with OpenSearch & Embeddings in NestJS (Step by Step) – Ep 11
748 views · Oct 4, 2026
Duration 24:19NestJSBuild an Orders API in NestJS: Nested Prisma Writes and Server-Side Totals E-10
603 views · Sep 27, 2026
