// This file is automatically generated. Do not edit it directly.
// TODO(port): `@supabase/supabase-js` is not yet a dependency of website-vue.
// Add it (`npm i @supabase/supabase-js`) before using this client, and re-add the
// generated `./types` (Database) if type-safety is desired.
import { createClient } from "@supabase/supabase-js";

const SUPABASE_URL = import.meta.env.VITE_SUPABASE_URL;
const SUPABASE_PUBLISHABLE_KEY = import.meta.env.VITE_SUPABASE_PUBLISHABLE_KEY;

// Import the supabase client like this:
// import { supabase } from "@/integrations/supabase/client";

export const supabase = createClient(SUPABASE_URL, SUPABASE_PUBLISHABLE_KEY, {
  auth: {
    storage: localStorage,
    persistSession: true,
    autoRefreshToken: true,
  },
});
