Next.js sample
Server-rendered session handling with HttpOnly cookies
This sample keeps access and refresh tokens in HttpOnly cookies through the shared React API client. Every server action and page request can reuse the same token store implementation.
Use an existing user or create one below. Successful auth redirects to the dashboard and reuses the Base, Expenses, and Files services through the shared client only.
Next.js App Router docs