mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 23:59:08 +03:00
15 lines
420 B
TypeScript
15 lines
420 B
TypeScript
import { createClient } from '@supabase/supabase-js'
|
|
import AsyncStorage from '@react-native-async-storage/async-storage'
|
|
|
|
const supabaseUrl = 'https://project.supabase.co'
|
|
const supabaseAnonKey = 'your-anon-key'
|
|
|
|
export const supabase = createClient(supabaseUrl, supabaseAnonKey, {
|
|
auth: {
|
|
storage: AsyncStorage as any,
|
|
autoRefreshToken: true,
|
|
persistSession: true,
|
|
detectSessionInUrl: false,
|
|
},
|
|
})
|