Fixed signing out

This commit is contained in:
Roman Krček
2025-06-23 14:09:14 +02:00
parent 2f41e5ba1a
commit fe8789af87
6 changed files with 9 additions and 24 deletions

View File

@@ -1,9 +0,0 @@
import type { RequestHandler } from './$types';
import { redirect } from '@sveltejs/kit';
export const GET: RequestHandler = async ({ locals }) => {
// If using supabase-js client on the server, you can sign out here
if (locals.supabase) {
await locals.supabase.auth.signOut();
}
};