Files
journaley/src/routes/+layout.server.ts
T
2026-06-04 18:47:17 +02:00

14 lines
403 B
TypeScript

import { PUBLIC_CONVEX_URL } from '$env/static/public';
import { createConvexAuthHandlers } from '@mmailaender/convex-auth-svelte/sveltekit/server';
import type { LayoutServerLoad } from './$types.js';
const { getAuthState } = createConvexAuthHandlers({
convexUrl: PUBLIC_CONVEX_URL
});
export const load: LayoutServerLoad = async (event) => {
return {
authState: await getAuthState(event)
};
};