Skip to content

Add photoURL to AuthUser #73

Answered by kmjennison
ubresponsive asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Is there a callback to know when firebaseUser is initialised?

There is not. I recommend using React hooks (like useEffect) to take some action when the Firebase JS user is ready.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ubresponsive
Comment options

@egisz
Comment options

@kmjennison
Comment options

Answer selected by ubresponsive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants