From e928b5dcd0f8014d0df9df5f0608024bf9d117e1 Mon Sep 17 00:00:00 2001 From: Drew Bollinger Date: Wed, 29 Jan 2025 12:19:08 -0500 Subject: [PATCH] fix: force auth popup, unbreak chrome admin login (#4656) --- admin-client/src/lib/auth.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin-client/src/lib/auth.js b/admin-client/src/lib/auth.js index 2bf416889..61284ee4e 100644 --- a/admin-client/src/lib/auth.js +++ b/admin-client/src/lib/auth.js @@ -23,6 +23,10 @@ function externalAuth(path, action, hidden = false) { opts = `resizable=yes,scrollbars=yes,width=${width},height=${height},top=${top},left=${left}`; } + // https://developer.mozilla.org/en-US/docs/Web/API/Window/open + // force popup to prevent the tab from not handling auth redirects + opts += ',popup=true'; + const authWindow = window.open(url, 'authWindow', opts); const handleMessage = (e) => {