Save user information in Firebase Realtime Database

1

According to the documentation says, you should not use getUid() of user to authenticate users on the backend server; instead, use getToken() . However, I see a lot of code out there using this attribute to save things specific to a user, for example, a list of user X tasks. What should I actually use?

    
asked by anonymous 19.03.2017 / 02:58

1 answer

1

The Firebase recommendation is like the recommendation of any other language: It is recommended but not required. What happens, is that actually using token is a security recommendation. For, by nature a token is variable, so it can be valid several times for varying each section. Since uuid is like the PRIMARY KEY of a relational database

    
10.04.2017 / 20:34