I’ve got a Firebase web application that uses the following method to authenticate user’s via Facebook
let provider = new firebase.auth.FacebookAuthProvider();
provider.addScope('public_profile');
provider.addScope('user_location');
firebase.auth().signInWithRedirect(provider)
.then(function(){
return firebase.auth().getRedirectResult()
})
.then(function(result) {
console.log('Logged in user ::: ', result.user);
})
.catch(err => { console.warn('An error occurred') })
})
However, all iOS devices and emulateors (except one, strangely) never retrieve the user
object - instead I get null
- I’ve enabled Facebook as a Sign-in Provider in the Firebase console
- I’ve added my app’s domain, facebook.com, and localhost as Authorized domains in the Firebase console
- I’ve tried repositioning
getRedirectResult()
and utilizing theonAuthStateChanged()
methods, but to no avail
Has anyone run into a similar issue?