-
Notifications
You must be signed in to change notification settings - Fork 1
auth supabase Overview
GitHub Action edited this page Apr 21, 2026
·
2 revisions
The Supabase Authentication adapter for @quatrain/auth.
Supabase Auth provides robust user management based on PostgreSQL Row Level Security. This adapter implements the Quatrain Auth interface to verify Supabase JWTs and manage user sessions.
npm install @quatrain/auth-supabase @supabase/supabase-js
# or
yarn add @quatrain/auth-supabase @supabase/supabase-jsInitialize the adapter using your Supabase project URL and service role key.
import { Auth } from '@quatrain/auth'
import { SupabaseAuthAdapter } from '@quatrain/auth-supabase'
const supabaseAuth = new SupabaseAuthAdapter({
config: {
url: process.env.SUPABASE_URL,
key: process.env.SUPABASE_SERVICE_ROLE_KEY
}
})
Auth.addAdapter('supabase', supabaseAuth, true)For concrete examples and usage guides, please refer to the How-To Guide.
AGPL-3.0-only