Skip to content
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

[Bug]: Can not navigate after signInWithRedirect for Google from Firebase #11367

Closed
KJ-GM opened this issue Mar 23, 2024 · 1 comment
Closed
Labels

Comments

@KJ-GM
Copy link

KJ-GM commented Mar 23, 2024

What version of React Router are you using?

^6.22.3

Steps to Reproduce

const handelMicrosoftSignIn = async () => {
     await signInWithRedirect(FIREBASE_AUTH, GOOGLE_PROVIDER).then(() => navigate("/student"));
  };

Expected Behavior

The user signs in to google normally, when he gets redirected back to the page and try to navigate dose not work?

Actual Behavior

I tried to debug, but no solution, and notice that if I use signInWithPopup, the app dose navigate and work.

@KJ-GM KJ-GM added the bug label Mar 23, 2024
@timdorr
Copy link
Member

timdorr commented Mar 23, 2024

There isn't enough information to go on here, but I'm not seeing anything that points to a bug in the library. This is probably something wrong with your code or your handling of the redirect to/from Google.

@timdorr timdorr closed this as completed Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants