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
string
required
User email address
string
required
User password (minimum 6 characters)
object
User metadata
Response
string
JWT access token
string
Refresh token for obtaining new access tokens
integer
Token expiration time in seconds
string
Token type (bearer)
object
User object
Sign In with Password
Authenticate with email and password.Request Body
string
required
User email address
string
required
User password
Response
string
JWT access token for API requests
string
Token for refreshing the session
integer
Seconds until token expiration
object
Authenticated user object with id and email
Sign In with OAuth
Initiate Google OAuth sign-in flow.TypeScript
Parameters
string
required
OAuth provider (
google)string
URL to redirect after authentication
Get Current User
Retrieve the authenticated user’s information.Response
string
User UUID
string
User email address
object
Custom metadata including display name
object
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:string
Human-readable error message
string
Error code identifier
string | null
Additional error details
string | null
Suggestion for resolving the error
Security
All authenticated endpoints require these headers:apikey: Supabase anon/service keyAuthorization: Bearer token with JWT access token
Example