mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
10 lines
299 B
TypeScript
10 lines
299 B
TypeScript
import { GoTrueClient } from '@supabase/gotrue-js'
|
|
|
|
export const STORAGE_KEY = process.env.NEXT_PUBLIC_STORAGE_KEY || 'supabase.dashboard.auth.token'
|
|
|
|
export const gotrueClient = new GoTrueClient({
|
|
url: process.env.NEXT_PUBLIC_GOTRUE_URL,
|
|
storageKey: STORAGE_KEY,
|
|
detectSessionInUrl: true,
|
|
})
|