mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 14:55:23 +02:00
feat: add Supabase email auth with signup/login gate
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
76d901fcde
commit
47e2513b79
@@ -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',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user