Production-Ready Authentication in NestJS
25 min read
A production-shaped auth flow in NestJS — argon2, httpOnly cookies, refresh tokens, and Redis caching.
NestJSPostgreSQLAuth
Yurii Khvyshchuk — also known as Yura Khvyshchuk, Юрій Хвищук, Юра Хвищук, Хвищук, yuragon, yurkagon. Senior Fullstack Developer based on the web, building projects with TypeScript, React, Next.js and Node.js.
const aboutMe = {
name: "Yurii Khvyshchuk",
role: "Software Engineer",
inspiration: [
"TypeScript",
"NodeJS",
"React",
],
location: "Lviv, Ukraine🇺🇦",
} as const satisfies Profile;
A production-shaped auth flow in NestJS — argon2, httpOnly cookies, refresh tokens, and Redis caching.
All five Creational design patterns in TypeScript — Singleton, Factory, Abstract Factory, Prototype, and Builder.
Node.js backend for Apple Wallet: .pkpass generation, APNs silent push, and PassKit web service endpoints.