diff --git a/src/leapfrogai_ui/tests/helpers/helpers.ts b/src/leapfrogai_ui/tests/helpers/helpers.ts index 20cd58bb5..8d890965e 100644 --- a/src/leapfrogai_ui/tests/helpers/helpers.ts +++ b/src/leapfrogai_ui/tests/helpers/helpers.ts @@ -5,7 +5,16 @@ import { getAccessToken } from '../fixtures'; const token = await getAccessToken(); -export const supabase = createClient(process.env.PUBLIC_SUPABASE_URL!, token); +export const supabase = createClient( + process.env.PUBLIC_SUPABASE_URL!, + process.env.SERVICE_ROLE_KEY!, + { + auth: { + autoRefreshToken: false, + persistSession: false + } + } +); export const SHORT_RESPONSE_PROMPT = 'respond with no more than one sentence'; export const LONG_RESPONSE_PROMPT = 'write me a long poem';