web: use in memory db only for account recovery routes

This commit is contained in:
Abdullah Atta
2026-02-19 11:34:17 +05:00
parent effa726b65
commit a2939aa183

View File

@@ -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 };
}