I am having some problems.
I am using React Native with Firebase and the getRedirectResult(auth)
is consistently returning null even though I have already signed in with the google provider. I think it is because the page is doing a full reload?
const provider = new GoogleAuthProvider();
try {
await signInWithRedirect(auth, provider)
const result = await getRedirectResult(auth);
if (result) {
router.push('/HomeScreen');
}
} catch (error: any) {
console.error(error);
}
This is my code which doesnt work. Please help!