Skip to content

Commit

Permalink
fix: force auth popup, unbreak chrome admin login (#4656)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbo committed Jan 29, 2025
1 parent a7f4caa commit e928b5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions admin-client/src/lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit e928b5d

Please sign in to comment.