-
Notifications
You must be signed in to change notification settings - Fork 1
auth supabase HowTo
GitHub Action edited this page Apr 21, 2026
·
1 revision
This guide covers Supabase-specific auth operations.
Supabase stores user data inside the raw_user_meta_data field. The adapter normalizes this so it's easily accessible after verifying the token.
import { Auth } from '@quatrain/auth'
async function greetUser(token: string) {
const auth = Auth.getAdapter('supabase')
const user = await auth.verifyToken(token)
// Normalized access to Supabase metadata
console.log(`Hello, ${user.metadata.full_name}`)
}