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

Issue: signInSuccessWithAuthResult is called and says user logged in, but authProvider says no user logged in. #281

Open
rjjan opened this issue Nov 16, 2023 · 0 comments

Comments

@rjjan
Copy link

rjjan commented Nov 16, 2023

Hi,
In my login page, I use StyledFirebaseAuth and "sign in with google"

uiConfig.signInFlow = "redirect"
callbacks signInSuccessWithAuthResult (authResult, redirectUrl) => {
if (authResult.user) {
// i explicitly redirect to my specific page /foo
navigate("/foo"); // navigate = useNavigate();
}
return false;
}

But after i explicitly redirec to foo page, in foo page, the authProvider seems not "detect" user has logged in, so the upper right user avatar is still the "not logged in" status

Also authProvider.getIdentity() get null.

My question is: signInSuccessWithAuthResult says user logged in, but authProvider says no user logged in.

I appreciate your advice. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant