1
In accordance with the documentation says, one should not use the getUid()
user to authenticate users to the backend server; instead, use the getToken()
. However, I see a lot of code out there using this attribute to save user-specific things, for example, an X user’s to-do list.
What should I wear in a suit?
I think the Firebase recommendation is to avoid linking user authentication to id (which is immutable) as opposed to token (which can be invalidated at any time). But you can continue using id to reference user related data smoothly, just don’t use it to control user session.
– Wakim
Thank you for your reply, @Wakin!
– Leila F.