Firebase Auth: 'auth/popup-blocked' or popup closes immediately on mobile
@devsingh05▲ 11 net votes
Browsers block popups not opened directly in a user gesture, so signInWithPopup must be called synchronously inside the click handler (no await before it). On mobile Safari and in in-app browsers popups are unreliable; use signInWithRedirect there (and handle getRedirectResult on load), and add your deployed domain to Authorized domains. 'auth/popup-closed-by-user' just means the user dismissed it.