https://altly.madebydanny.uk
at main 17 lines 590 B view raw
1// This file is automatically generated. Do not edit it directly. 2import { createClient } from '@supabase/supabase-js'; 3import type { Database } from './types'; 4 5const SUPABASE_URL = import.meta.env.VITE_SUPABASE_URL; 6const SUPABASE_PUBLISHABLE_KEY = import.meta.env.VITE_SUPABASE_PUBLISHABLE_KEY; 7 8// Import the supabase client like this: 9// import { supabase } from "@/integrations/supabase/client"; 10 11export const supabase = createClient<Database>(SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY, { 12 auth: { 13 storage: localStorage, 14 persistSession: true, 15 autoRefreshToken: true, 16 } 17});