react-redux-firebase icon indicating copy to clipboard operation
react-redux-firebase copied to clipboard

Firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated

Open JonnyBoy333 opened this issue 5 years ago • 2 comments

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.

JonnyBoy333 avatar May 12 '20 03:05 JonnyBoy333

Hello @prescottprue any update on this? I am also getting this depreciation error.

ceafive avatar Mar 12 '21 13:03 ceafive

Hi @prescottprue, I am also having this problem, can you please guide us how did you solve the issue?

sharpvisions avatar Aug 05 '22 11:08 sharpvisions