feat: add Supabase email auth with signup/login gate

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Christian Vidal Wolf
2026-06-12 12:44:12 +02:00
co-authored by Claude Sonnet 4.6
parent 76d901fcde
commit 47e2513b79
3 changed files with 211 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
/// <reference types="node" />
import { createClient } from '@supabase/supabase-js';
const url = process.env.SUPABASE_URL || '';
const key = process.env.SUPABASE_ANON_KEY || '';
export const supabaseAuth = createClient(url, key, {
auth: {
autoRefreshToken: true,
persistSession: true,
detectSessionInUrl: true,
storageKey: 'craze-auth-session',
},
});