Skip to content

Commit

Permalink
use service role key
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrisse committed Sep 10, 2024
1 parent a9c1cb4 commit 8199688
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/leapfrogai_ui/tests/helpers/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 8199688

Please sign in to comment.