From 969db14a3cdca0f19c9125469fc208720bb1e239 Mon Sep 17 00:00:00 2001 From: miloschwartz Date: Mon, 4 May 2026 13:14:24 -0700 Subject: [PATCH] remove delay in oidc validate --- src/components/ValidateOidcToken.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ValidateOidcToken.tsx b/src/components/ValidateOidcToken.tsx index bd862c117..2f16d84d8 100644 --- a/src/components/ValidateOidcToken.tsx +++ b/src/components/ValidateOidcToken.tsx @@ -17,6 +17,7 @@ import { Loader2, CheckCircle2, AlertCircle } from "lucide-react"; import { useLicenseStatusContext } from "@app/hooks/useLicenseStatusContext"; import { useTranslations } from "next-intl"; import { validateOidcUrlCallbackProxy } from "@app/actions/server"; +import { build } from "@server/build"; type ValidateOidcTokenParams = { orgId: string; @@ -96,7 +97,7 @@ export default function ValidateOidcToken(props: ValidateOidcTokenParams) { stateCookie: props.stateCookie }); - if (isLicenseViolation()) { + if (build === "enterprise" && isLicenseViolation()) { await new Promise((resolve) => setTimeout(resolve, 5000)); }