Back to docs

Documentation

Auth and account flow

Login, registration, verification, OAuth, guest sessions, and profile management.

Article
PreviousNext

The TanStack template keeps auth tokens out of browser-managed storage. Browser state may cache a safe user summary, but the backend session token belongs in the HttpOnly tenant cookie.

Supported entry points

  • /login and /auth/login
  • /auth/register
  • /auth/verify and /auth/verify-email
  • /auth/forgot-password and /auth/reset-password
  • /auth/callback for GitHub OAuth
  • guest login and /auth/guest-convert

Handlers that can receive a token from the backend should pass through authCookieJsonResponse. That removes token fields from the JSON response and sets the tenant cookie.

Account surface

/dashboard/profile (legacy /profile redirects here) reads the current session through /api/auth/check, supports profile updates, password changes, guest conversion prompts, and account-deletion request flow through support tickets.