Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: donot auto-logout in auth page (#13828)

ecmadao7ca4a547db60
diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index b65aa8098b..50df0a70d2 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -68,7 +68,7 @@ axios.interceptors.response.use(
const origin = location.origin;
const pathname = location.pathname;
if (
- pathname !== "/auth/mfa" &&
+ !pathname.startsWith("/auth") &&
error.response.request.responseURL.startsWith(origin)
) {
// If the request URL starts with the browser's location origin