0

Not able to get firebase auth tried everything but getting following issue:

[Error: [auth/invalid-credential] The supplied auth credential is malformed or has expired. [ Invalid access_token, error code 43 ]]

Here is my code in react native:

const data = await AccessToken.getCurrentAccessToken();

const credential = auth.FacebookAuthProvider.credential(data.accessToken);

      const firebaseUserCredential = await auth().signInWithCredential(
        credential,
      );

const user = firebaseUserCredential.user.toJSON();
Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807

0 Answers0