⬆️ Upgraded SvelteKit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
|
||||
export async function load({ session }) {
|
||||
if (!session.authenticated) {
|
||||
throw redirect(302, '/account/login?returnTo=/dashboard');
|
||||
}
|
||||
return {
|
||||
email: session.email
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user