⬆️ 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
+14
View File
@@ -0,0 +1,14 @@
import { redirect } from '@sveltejs/kit';
import { signedIn } from '$lib/stores';
export async function load({ session }) {
if (!session.authenticated) {
throw redirect(302, '/account/login?returnTo=/import');
} else {
if (session.authenticated) {
signedIn.set(true);
}
}
return {
email: session.email
};
}