Files
SvelteKitSaasBoilerplate/src/lib/utils/supabase/auth.ts
T
2024-10-29 21:46:52 +00:00

7 lines
250 B
TypeScript

import type { SupabaseClient } from '@supabase/supabase-js';
export async function signOut(supabase: SupabaseClient, callback: () => void) {
// TODO use the error from the response
const { error } = await supabase.auth.signOut().then(callback);
}