2
votes

Hello i want to get a profile Url from the Firebase OAuth response, currently firebase give this about the profile :

displayName, email, photoURL,  uid

Have you any idea if its possible ?

(I work with a serverless project)

1
It's just those four fields in the Twitter providerData object, there's nothing extra?Rup
@Rup no, only the same data that i already haveAlexDemzz

1 Answers

2
votes

You will get additional user info when the sign in attempt resolves:

firebase.auth().signInWithPopup(new firebase.auth.TwitterAuthProvider())
  .then(function(userCredential) {
    // All additional user info is available here.
    console.log(userCredential.additionalUserInfo.profile);
  })
  .catch(function(error) {
    // Error occurred.
  });

For more on this, check firebase.auth.UserCredential.