mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-12 18:43:50 +00:00
7 lines
250 B
TypeScript
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);
|
|
}
|