79217111

Date: 2024-11-23 04:35:48
Score: 4.5
Natty:
Report link

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!

Reasons:
  • Blacklisted phrase (1): doesnt work
  • RegEx Blacklisted phrase (3): Please help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: clara