From 3ee69f0d04e3e89227e077223573b49cde05fdc1 Mon Sep 17 00:00:00 2001 From: Josh Creek <8179928+jcreek@users.noreply.github.com> Date: Tue, 15 Sep 2026 17:49:04 +0100 Subject: [PATCH] refactor(api): drop the redundant setSession in export-integrations requireAuth has already resolved the session on locals.supabase. --- src/routes/api/export-integrations/+server.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/routes/api/export-integrations/+server.ts b/src/routes/api/export-integrations/+server.ts index d5c97ec..1a36117 100644 --- a/src/routes/api/export-integrations/+server.ts +++ b/src/routes/api/export-integrations/+server.ts @@ -7,11 +7,6 @@ export const GET = async (event: RequestEvent) => { try { const userId = await requireAuth(event); - const { session } = await event.locals.safeGetSession(); - if (session) { - await event.locals.supabase.auth.setSession(session); - } - const repo = new PokedexExportIntegrationRepository(event.locals.supabase, userId, null); const integrations = await repo.listAll();