Authentication
This API uses Supabase authentication with server-side rendering (SSR) middleware. Authentication is handled through cookies and the Supabase client.How it works
- The API uses Supabase’s
createServerClient
for authentication - Authentication state is maintained through cookies
- The middleware automatically handles:
- Cookie parsing from requests
- Cookie setting in responses
- Supabase client initialization
You don’t need to manually handle authentication tokens. The Supabase SSR
middleware automatically manages the session through cookies.