Replies: 1 comment
-
|
Hey, I was wondering were you able to make it work? I am facing the same issue, can't really understand how to use signInWithRedirect on flutter |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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