refactor: cleanup skeleton, setup supabase properly
This commit is contained in:
9
src/routes/+layout.server.ts
Normal file
9
src/routes/+layout.server.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import type { LayoutServerLoad } from "./$types";
|
||||
|
||||
export const load: LayoutServerLoad = async ({ locals: { safeGetSession }, cookies }) => {
|
||||
const { session } = await safeGetSession();
|
||||
return {
|
||||
session,
|
||||
cookies: cookies.getAll()
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user