Add photoURL to AuthUser #73
-
is there a way to add PhotoURL to the AuthUser? Right now to get it I have to wait for the AuthUser.FirebaseUser to return and retrieve via AuthUser.firebaseUser.photoURL. Is there a callback to know when firebaseUser is initialised? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Sure, we can add a photoURL field, given it exists in both the decoded ID token and client JS: Feel free to open a feature request. We could also add phone number, too.
There is not. I recommend using React hooks (like |
Beta Was this translation helpful? Give feedback.
Sure, we can add a photoURL field, given it exists in both the decoded ID token and client JS:
https://firebase.google.com/docs/reference/admin/node/admin.auth.DecodedIdToken#optional-picture
https://firebase.google.com/docs/reference/js/firebase.User#photourl
Feel free to open a feature request. We could also add phone number, too.
There is not. I recommend using React hooks (like
useEffect
) to take some action when the Firebase JS user is ready.