hoodie.id() generates a random ID that is unique to the current user, independent of whether the user has an account or not. It persists in between page reloads and will be written in the _users doc once the user signs up. It's also the ID that is stored with every object in the createdBy property.
We now have a new API:
hoodie.id()
.hoodie.id()
generates a random ID that is unique to the current user, independent of whether the user has an account or not. It persists in between page reloads and will be written in the_users
doc once the user signs up. It's also the ID that is stored with every object in thecreatedBy
property.