I'm copying this code from the expo documentation page Using Firebase (Facebook-Login) to integrate Facebook login with firebase.
const { type, token } = await Facebook.logInWithReadPermissionsAsync({
permissions: ['public_profile'],
});
if (type === 'success') {
const facebookAuthProvider = new FacebookAuthProvider();
const credential = facebookAuthProvider.credential();
}
But when i copy this, having all the dependencies installed it says that :
- Property
'token'does not exist on type'FacebookLoginResult' - Property
'credential'does not exist on type'FacebookAuthProvider'
But when i enter to the node-modules they do exist, idk what is happening or if i am doing something wrong, help.