perbaikan data

This commit is contained in:
aji@catalis.app
2025-06-22 12:26:43 +07:00
parent 2e4ff82e98
commit 2ad0f5093d
10 changed files with 752 additions and 353 deletions

10
src/lib/utils/authUtil.ts Normal file
View File

@@ -0,0 +1,10 @@
import { supabase } from "$lib/supabaseClient";
export async function getSessionAuthId() {
const { data: { session }, error } = await supabase.auth.getSession();
if (error) {
console.error("Error fetching session:", error);
return null;
}
return session?.user?.id || null;
}