⬆️ Upgraded SvelteKit

This commit is contained in:
Mawoka
2022-08-18 15:53:02 +02:00
parent 9b79358db3
commit a3b015ffca
27 changed files with 938 additions and 567 deletions
+12
View File
@@ -0,0 +1,12 @@
import { redirect } from '@sveltejs/kit';
import { signedIn } from '$lib/stores';
export async function load({ session }) {
if (!session.authenticated) {
throw redirect(302, '/account/login?returnTo=/create');
}
if (session.authenticated) {
signedIn.set(true);
}
return {};
}