Supabase Adapter

Authenticate users using Supabase Auth with OAuth and password-based authentication.

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 key

Supported Providers

  • OAuth: Google, GitHub, Facebook, Apple, Twitter
  • Password: Email/Password, Magic Link (OTP)
  • Passkey: WebAuthn passkeys

Capabilities

FeatureSupported
Authentication
Data API
RPC
Logging
Magic Link
Passkey

Next Steps

Kavach — Authentication made simple llms.txt