Fixed signing out
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user