Build a custom JWT (JSON Web Token) authentication flow in Next.js. Learn how to securely store and validate tokens in HTTP-only cookies.