diff --git a/apps/web/src/connectors/duo-redirect.ts b/apps/web/src/connectors/duo-redirect.ts index ddbf75e53c..2b8a3de4de 100644 --- a/apps/web/src/connectors/duo-redirect.ts +++ b/apps/web/src/connectors/duo-redirect.ts @@ -54,8 +54,10 @@ function redirectToDuoFrameless(redirectUrl: string) { if ( validateUrl.protocol !== "https:" || - !validateUrl.hostname.endsWith("duosecurity.com") || - !validateUrl.hostname.endsWith("duofederal.com") + !( + validateUrl.hostname.endsWith("duosecurity.com") || + validateUrl.hostname.endsWith("duofederal.com") + ) ) { throw new Error("Invalid redirect URL"); }