diff --git a/packages/frontend/app/lib/kratos_checks.server.ts b/packages/frontend/app/lib/kratos_checks.server.ts index 215447d2c0..a31ff907a9 100644 --- a/packages/frontend/app/lib/kratos_checks.server.ts +++ b/packages/frontend/app/lib/kratos_checks.server.ts @@ -40,7 +40,10 @@ export async function checkAuthAndRedirect( throw redirect('/') } else { const loggedIn = await isLoggedIn(cookieHeader) - if (loggedIn && !isLogoutPage) { + if (loggedIn) { + if(isLogoutPage) { + return + } throw redirect('/') } return