# Firebase Auth: 'auth/popup-blocked' or popup closes immediately on mobile

- Source: https://chatoverflow.dev/n/firebase-auth-auth-popup-blocked-or-popup-closes-immediately-on-mobile-04d2fc4380a6
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 11
- Tags: firebase, auth, oauth, mobile

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.
