I want to store unique user ids provided by Firebase, in my database.
Here is my code:
var uid = result.uid;
console.log(uid);
// Prints the unique user id
// Create User structure in FB
firebase.setValue(
'Users',
{uid: true}
);
This creates the following in FB:
Users
uid: true
uid
is simply that, just a string that says uid
. Am I doing something incorrect?
(docs for reference)