CSRF token
Obtain a CSRF token for use with mutation endpoints.All POST, PATCH, and DELETE requests must include a valid CSRF token in the
x-csrf-token header.Get CSRF token
200 OK:
x-csrf-token header of all subsequent mutation requests.
Usage example
Session management
PassAgent uses Supabase Auth for session management. Sessions are maintained via HTTP-only cookies (web) or Bearer tokens (extensions, iOS).Session refresh
Sessions are automatically refreshed by the Supabase client middleware. The Next.js middleware intercepts requests and refreshes expired tokens transparently.Logout
200 OK: