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