Client Setup
The Supabase client is initialized with auto-refresh and session persistence:packages/app/src/integrations/supabase/client.ts
Sign Up
Create a new user account with email and password.Request Body
User email address
User password (minimum 6 characters)
User metadata
Response
JWT access token
Refresh token for obtaining new access tokens
Token expiration time in seconds
Token type (bearer)
User object
Sign In with Password
Authenticate with email and password.Request Body
User email address
User password
Response
JWT access token for API requests
Token for refreshing the session
Seconds until token expiration
Authenticated user object with id and email
Sign In with OAuth
Initiate Google OAuth sign-in flow.TypeScript
Parameters
OAuth provider (
google)URL to redirect after authentication
Get Current User
Retrieve the authenticated user’s information.Response
User UUID
User email address
Custom metadata including display name
System metadata managed by Supabase
Sign Out
End the current user session.Response
Returns empty response with status 200 on success.Error Handling
All authentication endpoints return errors in this format:Human-readable error message
Error code identifier
Additional error details
Suggestion for resolving the error
Security
All authenticated endpoints require these headers:apikey: Supabase anon/service keyAuthorization: Bearer token with JWT access token
Example