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.
loginWithPopup and log in using Safari (not Private Mode).
This is due to a bug with WebKit, which is Safari’s rendering engine.
Currently, there is no workaround for this issue. Please consider using