Supabase Adapter
Authenticate users using Supabase Auth with OAuth and password-based authentication.
Installation
npm install @kavach/adapter-supabaseConfiguration
export default {
adapter: 'supabase',
providers: [
{ name: 'google', label: 'Continue with Google' },
{ name: 'github', label: 'Continue with GitHub' }
],
env: {
url: 'PUBLIC_SUPABASE_URL',
anonKey: 'PUBLIC_SUPABASE_ANON_KEY'
}
}Environment Variables
| Variable | Description |
|---|---|
PUBLIC_SUPABASE_URL | Your Supabase project URL |
PUBLIC_SUPABASE_ANON_KEY | Your Supabase anon key |
Supported Providers
- OAuth: Google, GitHub, Facebook, Apple, Twitter
- Password: Email/Password, Magic Link (OTP)
- Passkey: WebAuthn passkeys
Capabilities
| Feature | Supported |
|---|---|
| Authentication | ✓ |
| Data API | ✓ |
| RPC | ✓ |
| Logging | ✓ |
| Magic Link | ✓ |
| Passkey | ✓ |