diff --git a/apps/web/src/connectors/duo-redirect.ts b/apps/web/src/connectors/duo-redirect.ts index 337e807ae3..99b15c1a59 100644 --- a/apps/web/src/connectors/duo-redirect.ts +++ b/apps/web/src/connectors/duo-redirect.ts @@ -28,7 +28,9 @@ window.addEventListener("load", () => { window.postMessage({ command: "duoResult", code: code, state: state }, "*"); processAndDisplayHandoffMessage(); } else if (client === "mobile" || client === "desktop") { - processAndDisplayHandoffMessage(); + if (client === "desktop") { + processAndDisplayHandoffMessage(); + } document.location.replace( mobileDesktopCallback + "?code=" +