mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 16:55:24 +02:00
15 lines
374 B
TypeScript
15 lines
374 B
TypeScript
/// <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',
|
||
|
|
},
|
||
|
|
});
|