Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Firebase Facebook OAuth Returns null On iOS Devices

$
0
0

@claybanks1989 wrote:

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 the onAuthStateChanged() methods, but to no avail

Has anyone run into a similar issue?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>