Popup window doesn't close automatically with Safari (auth0-spa-js and its dependent SDKs)

Problem statement

With Safari (not Private Mode), the popup window opened by loginWithPopup doesn’t close automatically when Safari is prompted to save username/password after the user is authenticated. With Private Mode, this issue doesn’t happen.

Steps to reproduce

Implement loginWithPopup and log in using Safari (not Private Mode).

Cause

This is due to a bug with WebKit, which is Safari’s rendering engine.

209074 – window.close() is ignored when Safari is prompting to save/update passwords

Solution

Currently, there is no workaround for this issue. Please consider using loginWithRedirect.