Supabase Adapter

LIVE

Postgres-powered auth with row-level security. Email/password, magic link, OAuth providers, and WebAuthn passkeys.

@kavach/adapter-supabase Try Demo

Installation

npm install @kavach/adapter-supabase

Configuration

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

VariableDescription
PUBLIC_SUPABASE_URLYour Supabase project URL
PUBLIC_SUPABASE_ANON_KEYYour Supabase anon (public) key

Supported Providers

Google
GitHub
Facebook
Apple
Twitter
Email + Password
Magic Link
Passkey

Capabilities

Authentication
Data API (PostgREST)
RPC functions
Row-level security
Magic link / OTP
WebAuthn passkeys
Structured logging

Next Steps

Kavach — Authentication made simple llms.txt