Hello i want to get a profile Url from the Firebase OAuth response, currently firebase give this about the profile :
JavaScript
x
2
1
displayName, email, photoURL, uid
2
Have you any idea if its possible ?
(I work with a serverless project)
Advertisement
Answer
You will get additional user info when the sign in attempt resolves:
JavaScript
1
9
1
firebase.auth().signInWithPopup(new firebase.auth.TwitterAuthProvider())
2
.then(function(userCredential) {
3
// All additional user info is available here.
4
console.log(userCredential.additionalUserInfo.profile);
5
})
6
.catch(function(error) {
7
// Error occurred.
8
});
9
For more on this, check firebase.auth.UserCredential
.