Setup
1. Create Supabase Project
- Go to Supabase Dashboard
- Create a new project or select existing one
- Note your Project ID and API URL
2. Get JWT Secret (HS256 Only)
For HS256 tokens (legacy):- Go to Project Settings → API
- Copy the JWT Secret under “JWT Settings”
- No JWT secret needed, JWKS is used automatically
3. Configure Authentication
- Go to Authentication → Providers
- Enable desired authentication providers (Email, Google, GitHub, etc.)
- Configure redirect URLs
Configuration
Basic Configuration (ES256)
For new Supabase projects using ES256 tokens:Configuration with HS256 (Legacy)
For projects still using HS256 tokens:Environment Variables
Full Configuration Options
Token Types
ES256 (Recommended)
New Supabase projects use ES256 tokens with JWKS:- More secure (asymmetric encryption)
- No shared secret to manage
- Automatic key rotation support
HS256 (Legacy)
Older projects may still use HS256:- Go to Supabase Dashboard → Project Settings → API
- Look for “JWT Algorithm” in JWT Settings
- If it says “HS256”, you need the JWT secret
- If it says “ES256”, omit the JWT secret
Resources
Next Steps
- User Context - Access user information