full working application and initial commit

This commit is contained in:
2026-06-04 18:39:39 +02:00
commit 8524179793
86 changed files with 10107 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import { redirect } from '@sveltejs/kit';
import { createConvexAuthHandlers } from '@mmailaender/convex-auth-svelte/sveltekit/server';
import type { PageServerLoad } from './$types.js';
const { isAuthenticated } = createConvexAuthHandlers();
export const load: PageServerLoad = async (event) => {
throw redirect(302, (await isAuthenticated(event)) ? '/dashboard' : '/signin');
};