React Native Firebase Authentication with FBLoginManager

FBLoginManager.loginWithPermissions(['email'], (error, data) => {
if (!error) {
const credential = firebase.auth.FacebookAuthProvider.credential(data.credentials.token);
firebase
.auth()
.signInWithCredential(credential)
.then(() => alert('Account accepted'))
.catch((error) => alert('Account disabled'));
} else {
console.log(error, data);
}
});

--

--

--

UK-based Technology Consultant working in London and Manchester.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matthew Leak

Matthew Leak

UK-based Technology Consultant working in London and Manchester.

More from Medium

Scott Barnes Mobile Application

Send Direct SMS from React Native App using React Native Bridge

Upload Documents to Firebase using Expo React Native

Theming React Native Applications with Styled Components