⬆️ Finished upgrading SvelteKit

This commit is contained in:
Mawoka
2022-08-18 16:22:44 +02:00
parent a3b015ffca
commit cacd727c0e
21 changed files with 60 additions and 268 deletions
+13
View File
@@ -0,0 +1,13 @@
import { signedIn } from '$lib/stores';
import type { LayoutLoad } from './$types';
export const load: LayoutLoad = async ({ locals }) => {
if (locals.email) {
signedIn.set(true);
} else {
signedIn.set(false);
}
return {
email: locals.email
};
};