First I sign in
const provider = new GoogleAuthProvider();
signInWithRedirect(auth, provider);
then I get a UserCredential with a NONnull user (of course)
const handleGetRedirectResult = async () => {
try {
const result = await getRedirectResult(auth);
console.log(result);
} catch (error) {
console.log(error);
}
};
handleGetRedirectResult()
then I run the same function again
handleGetRedirectResult()
I still get a UserCredential with a NONnull user @@
then I sign out
then I run the function again
handleGetRedirectResult()
I still get a UserCredential with a NONnull user again @@
I think firebase has saved the redirect data somewhere and hasn't deleted it after first getRedirectResult(auth) that when I run handleGetRedirectResult() again, it still returns a UserCredential with a NONnull user even that I have signed out