DevDocs
GuidesIntermediate · 10 min · Updated May 5, 2026

Authentication Flow

Describe sign-in, token refresh and protected routes.

Session flow

Document auth boundaries and access policies with examples.

guard

ts

if (!session) redirect('/login');