loginWithPopup from chrome extension instantly closes on MacBooks enrolled in enterprise networks

Example movie

Gotten a few reports from our users about this but, not been able to reproduce it ourselves yet, but happens frequently and consistently for them.

Both reports have been from clients using MacBooks enrolled in a enterprise network using jamf.

It is a chrome extension using auth0-spa-js to trigger login using loginWithPopup. But instead of showing the login page, the pop-up closes after a second or so. One time it apparently showed the login form, but the user was unable to submit it.

Has anyone seen this before? Know what I might be doing wrong?

Relevant extension

Update: managed to work with one of the clients, when devtools are open, the bug does not appear, however with devtools closed, it happens every time.