I develop a react-native (expo) mobile app and try to sign in with a google account to firebase, but I get an error:
\"auth/operation-not-supported-in
signInWithPopup
is not supported in react-native. You will need to use a third party OAuth library to get the OAuth ID token or access token and then sign in with Firebase:
const cred = firebase.auth.GoogleAuthProvider.credential(googleIdToken, googleAccessToken);
firebase.auth().signInWithCredential(cred)
.then((result) => {
// User signed in.
})
.catch((error) => {
// Error occurred.
});