From a2939aa183b16a4ac8c3688cd69ee04ff63095e7 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 19 Feb 2026 11:34:17 +0500 Subject: [PATCH] web: use in memory db only for account recovery routes --- apps/web/src/bootstrap.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/web/src/bootstrap.tsx b/apps/web/src/bootstrap.tsx index cb2a758b2..f3df0ef93 100644 --- a/apps/web/src/bootstrap.tsx +++ b/apps/web/src/bootstrap.tsx @@ -194,11 +194,9 @@ export async function init() { initializeLogger() ]); - const persistence = - (path !== "/sessionexpired" && isAccountRecoveryRoute(path)) || - Config.get("sessionExpired", false) - ? ("db" as const) - : ("memory" as const); + const persistence = isAccountRecoveryRoute(path) + ? ("memory" as const) + : ("db" as const); return { Component, path, props: route.props, persistence }; }