You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❯ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.38.3, on macOS 26.1 25B78 darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.0.1)
[✓] Chrome - develop for the web
[✓] Connected device (3 available)
[✓] Network resources
• No issues found!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I’m running into a limitation with Google Sign-In using popup on Flutter Web, which forces me to switch to redirect-based sign-in.
1. Why redirect?
Popups work, but the popup flow breaks in certain environments:
Because of that, I need Google Sign-In Redirect to work reliably.
2. What I tried (simple minimal app)
Popup version works. Redirect version always returns
nulluser after redirect.Code (Redirect Flow Attempt)
Called in:
The rest of the minimal app uses a simple
StreamBuilder<AuthState>to show UI.another example: https://pastebin.com/wEKsyXH4
3. Environment
Flutter Doctor
Firebase packages
Web setup
<meta name="google-signin-client_id">addedhttps://<project>.firebaseapp.com/__/auth/handler4. The issue
The redirect completes successfully, but:
always returns:
Popup mode (
signInWithPopup) works perfectly in the same app.Beta Was this translation helpful? Give feedback.
All reactions