-
Notifications
You must be signed in to change notification settings - Fork 920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getRedirectResult always returns null even though user has authenticated successfully with signInWithRedirect #8652
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
React Native but on the web? Sounds like a very rare combination...good luck. |
Hi @hoppybunny, thanks for reaching out to us and apologies for the late response. I tried replicating the issue and I wasn't able to experience the same behavior. I tried authenticating on browser on my computer and mobile and the authentication was successful and I was able to see the user object using the |
Hey @hoppybunny. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
the same problem. |
the same problem, response is null from redirect |
Hey @hoppybunny. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @hoppybunny if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
facing the same issue |
Operating System
macOS
Environment (if applicable)
React Native
Firebase SDK Version
11.0.2
Firebase SDK Product(s)
Auth
Project Tooling
React Native with Expo, currently running on the web
Detailed Problem Description
My app is built using React Native Expo framework, currently running on the web. I am implementing Google sign-in using Firebase Authentication with
signInWithRedirect()
. After a successful sign-in,getRedirectResult()
keeps returningnull
instead of the expected result, even though the user is authenticated and signed in successfully.I followed the best practices here: https://firebase.google.com/docs/auth/web/redirect-best-practices
I am currently using Option 1 as I am hosting the app on firebase, and having a custom domain.
This is what I have already done:
authDomain
to my custom domainWhy is this still happening? I tried various suggestions on Stack Overflow and GitHub issues but none worked. I suspect that because
signInWithRedirect
forces a full page reload, the result returns asnull
.Please help! Thank you
Steps and code to reproduce issue
2 ways of writing the code that I tried:
Method 1
Method 2:
The text was updated successfully, but these errors were encountered: