NestJS Auth Part 3: Roles Decorator, RolesGuard and Seller-Only Routes: E9
19 min811 views
About this video
A buyer should not be able to create products, and right now ours can. This episode finishes the auth trilogy with role-based access control.
We build the Roles decorator and a RolesGuard powered by Reflector, add the OptionalJwtAuthGuard for routes that personalize when you are logged in but still work when you are not, and stack seller-only guards on product create, update, and the seller listing route.
Subscribe to Code with Jay to follow the full build.
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 45:47NestJSNestJS Unit Testing with Jest: Mock PrismaService and Test JWT Auth e8
1K views · Sep 6, 2026
Duration 42:50NestJSThe Only Way to Handle Refresh Tokens in NestJS (Production Guide) E-7
979 views · Aug 30, 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
