This lesson is for members

Already a member? Sign in to watch.

tRPC + Better Auth

This tutorial demonstrates how to secure a tRPC server in a NestJS application using custom middleware. The developer creates an authentication middleware and context to validate Better Auth session cookies, protecting procedures and replacing hard-coded user IDs with authenticated user sessions. The final result is verified in the UI.

Chapters

Length
13:16
Captions
English (Generated), Spanish (Auto-translated), French (Auto-translated), Korean (Auto-translated), Portuguese (Auto-translated), Vietnamese (Auto-translated)
#trpc#nestjs#authentication#middleware#web development#programming#typescript#better-auth#coding tutorial#backend

Questions

Members can ask questions about any lesson, and Michael answers them.

Sign in

No questions yet.