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.