From e255d6a2fb7443d0c4cadc871868897f86dc6a95 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 11 Sep 2026 22:02:56 +0200 Subject: [PATCH] fix(auth): normalize AUTH_TYPE to uppercase to prevent silent redirect loop (#6810) Co-authored-by: Alexander --- keep-ui/auth.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keep-ui/auth.config.ts b/keep-ui/auth.config.ts index 11aecf037a..f12282a9db 100644 --- a/keep-ui/auth.config.ts +++ b/keep-ui/auth.config.ts @@ -35,7 +35,7 @@ const authSessionTimeout = runtimeEnv("AUTH_SESSION_TIMEOUT") ? Number.parseInt(runtimeEnv("AUTH_SESSION_TIMEOUT")!) : 30 * 24 * 60 * 60; // Default to 30 days if not set // Determine auth type with backward compatibility -const authTypeEnv = runtimeEnv("AUTH_TYPE"); +const authTypeEnv = runtimeEnv("AUTH_TYPE")?.toUpperCase(); export const authType = authTypeEnv === MULTI_TENANT ? AuthType.AUTH0