This commit is contained in:
Leonardo
2026-02-19 12:53:21 -03:00
parent 676042268b
commit b3bb817e3f
2 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { createClient } from '@supabase/supabase-js'
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL
const supabaseAnonKey = import.meta.env.VITE_SUPABASE_ANON_KEY
// SPA-friendly auth settings
export const supabase = createClient(supabaseUrl, supabaseAnonKey, {
auth: {
persistSession: true,
autoRefreshToken: true,
detectSessionInUrl: true
}
})