Firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated
Getting this warning when calling firebase.login({ credential }) passing in credentials from facebook provider. This is in a react native environment using expo. Here is my code:
await Facebook.initializeAsync('xxxx', 'Cool App');
const loginResult = await Facebook.logInWithReadPermissionsAsync({ permissions: ['public_profile', 'email', 'user_friends'] });
if (loginResult.type === 'success') {
const credential = firebase.auth.FacebookAuthProvider.credential(loginResult.token);
await firebase.login({ credential });
} else {
Alert.alert('Facebook Sign In Cancelled');
}
I have react-redux-firebase v3.4.0 installed and firebase v7.9.0 installed.
The full error is:
firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead.
I'm guessing something needs to be updated to accommodate firebase's new APIs.
Hello @prescottprue any update on this? I am also getting this depreciation error.
Hi @prescottprue, I am also having this problem, can you please guide us how did you solve the issue?