Web sessions
Web users authenticate using Supabase Auth with magic link OTP:- User enters their email on the login page
- Supabase sends a magic link to their email
- Clicking the link creates a session
- The session is managed via Supabase cookies
middleware.ts guards all authenticated routes and redirects unauthenticated users to /login.
API tokens (PAK)
The service authenticates with the cloud using Personal API Keys (PAK). These are long-lived tokens created through the settings UI.Token format
How they work
- Tokens are hashed with SHA-256 before storage — the raw token is shown only once at creation
- Each request includes the token in the
Authorizationheader and the team ID inX-Team-Id - The cloud verifies the hash, resolves the team, and updates
last_used_at
Using tokens
Managing tokens
Go to Settings in the cloud web UI to:- Create new tokens with descriptive names
- View last-used timestamps
- Revoke tokens