Use JWT sessions only if you’re building against the Sly dashboard experience — e.g. a browser-side tool that needs to act as a logged-in staff member. For server-to-server integrations, use API keys.
Token format
Standard RFC 7519 JWTs, signed by Supabase. Start witheyJ…:
How to obtain
Use
Same header as any bearer token:RequestContext with:
actorType: 'user'userIduserRole— one ofowner,admin,member,vieweruserName
Refresh before expiry
Access tokens last 15 minutes. Refresh at ~14 minutes:When JWT auth makes sense
- Browser-based staff tools operating as a logged-in user
- Embedded iframes showing user-specific views
- White-label dashboards re-skinning the Sly dashboard experience
Signup, password reset, other flows
The/v1/auth/* routes implement the full Supabase Auth suite (signup, login, logout, password reset, magic links). These are dashboard-internal and not part of the typical integration surface. If you need to see them for a specific use case, check apps/api/src/routes/auth.ts or reach out on support.