commit
This commit is contained in:
13
src/lib/supabase/client.js
Normal file
13
src/lib/supabase/client.js
Normal 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
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user