Unable to do _auth.signInWithPopup

Please provide the following:

  1. SDK Version: ^43.0.0 | Firebase version: 9.2.0
  2. Platforms(Android/iOS/web/all): all

Hey, I am currently working on Firebase authentication with Single Sign on, but somehow when i call this function await signInWithPopup(auth, googleAuthProvider); i got back with this issue “error [TypeError: (0, _auth.signInWithPopup) is not a function. (In ‘(0, _auth.signInWithPopup)(auth, googleAuthProvider)’, ‘(0, _auth.signInWithPopup)’ is undefined)]”

this is basically how i declare my const
import { getAuth, GoogleAuthProvider, signInWithPopup } from ‘firebase/auth’;
const auth = getAuth();
const googleAuthProvider = new GoogleAuthProvider();
await signInWithPopup(auth, googleAuthProvider);

I’m having exactly the same issue. I’ve been searching all over the internet with no hope. Have you figured it out? It looks like a Cycle Require issue. Only the Auth package has this problem. By the way, it only occurs in React Native, not in React web.

I found a really good guide here, but haven’t actually have time to try it out. Maybe you can try and give me a guidance on that Apple/Google authentication in Expo apps using Firebase | by Carles Capellas | Nerd For Tech | Medium

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.