✨ Redirecting to dashboard if logged in on the landing screen
This commit is contained in:
@@ -9,6 +9,10 @@
|
|||||||
export async function load({ session }) {
|
export async function load({ session }) {
|
||||||
if (session.authenticated) {
|
if (session.authenticated) {
|
||||||
signedIn.set(true);
|
signedIn.set(true);
|
||||||
|
return {
|
||||||
|
status: 302,
|
||||||
|
redirect: '/dashboard'
|
||||||
|
};
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user