Real-World Auth: NestJS + Redis Sessions (Better than JWT?)

Опубликовано: 13 Май 2026
на канале: NestJS Simplified
135
7

Still using JWT for everything? You might be overengineering it.

In this video, we build a real-world session-based authentication system using NestJS, Redis, TypeORM, and Express Session — the way production apps actually handle auth.

00:00 – Docker Compose Setup for PostgreSQL & Redis
06:30 – Connecting Database with NestJS & TypeORM
12:30 – Docker Desktop, Containers, Volumes & Port Mapping
18:30 – TypeORM in NestJS: Static vs Dynamic Initialization
24:30 – Redis Integration in NestJS (Module & Service)
30:30 – User Module: Signup Controller & Service
36:30 – Auth Module with Passport & Strategies
42:30 – Login Flow: TypeORM + Express Session + Redis
49:30 – Auth Guard with Passport Session
54:00 – Demo: Session with vs without Redis

💥 What you’ll learn:

Full NestJS setup from scratch
How to use Express Session properly (no confusion)
Why Redis is critical for scaling sessions
Complete TypeORM integration for user + session flow
How sessions actually work behind the scenes (not theory)

⚠️ If you’re building:

SaaS apps
Admin dashboards
Scalable backend systems

This approach is often simpler, safer, and more practical than JWT.

👉 This is not a basic tutorial — it’s how you actually implement auth in real systems.