Skip to content

Commit

Permalink
add back redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
craigkai committed Oct 15, 2024
1 parent 3d0147e commit 2ec0a90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ const authGuard: Handle = async ({ event, resolve }) => {
return redirect(303, '/auth');
}

// if (event.locals.session && event.url.pathname === '/auth') {
// return redirect(303, '/protected-routes/dashboard');
// }
if (event.locals.session && event.url.pathname === '/auth') {
return redirect(303, '/protected-routes/dashboard');
}

return resolve(event);
};
Expand Down

0 comments on commit 2ec0a90

Please sign in to comment.