Please provide the following:
- SDK Version: ^43.0.0 | Firebase version: 9.2.0
- 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);