Will changing user name in Google update in Firebase auth?

617 views
Skip to first unread message

John Carter

unread,
Aug 19, 2020, 5:41:29 AM8/19/20
to Firebase Google Group

I'm using Google login with Firebase auth, and displaying the user's name within the app.

I've notice that changing the user's name in Google doesn't immediately update in Firebase auth.

Is there some caching involved, or will Firebase auth never update the display name after user creation?

Sam Stern

unread,
Aug 19, 2020, 5:44:25 AM8/19/20
to Firebase Google Group
Hi John,

When you use any identity provider (Google, Facebook, GitHub, etc) to sign into FIrebase we do a one time exchange to get the user's profile information.  We don't have any connection to the Identity Provider after that. In fact the user could delete their Google account entirely and the Firebase auth user would continue to exist!

- Sam

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/a8e1d509-597c-4566-bf01-1ba2b924d785n%40googlegroups.com.

John Carter

unread,
Aug 19, 2020, 7:04:00 PM8/19/20
to Firebase Google Group
Thanks Sam, that makes sense.

I get the impression that provider_data is lazy loaded on first use - will that update (or can it be forced to update?), or is that a one-time thing as well?

Sam Stern

unread,
Aug 20, 2020, 5:29:22 AM8/20/20
to Firebase Google Group
Hi John,

Provider data is the same, it's a one-time update done at the time of the first token exchange.

- Sam

Reply all
Reply to author
Forward
0 new messages