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
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: