paper-ai-release-24-07-21/utils/supabase/servicerole.ts
2024-02-08 14:14:50 +08:00

14 lines
298 B
TypeScript

import { createClient } from "@supabase/supabase-js";
export const supabaseAdmin = createClient(
process.env.NEXT_PUBLIC_SUPABASE_URL!,
process.env.SUPABASE_SECRET_KEY!,
{
auth: {
persistSession: false,
autoRefreshToken: false,
detectSessionInUrl: false,
},
}
);