Category: Data
Gets a unique identifier for the current user of this app.
Sometimes you want to track a user over multiple uses of your app. getUserId will get a unique identifier that you can save to track this user's use of your app. Usually you will save the user ID to remote data storage using createRecord() so you can keep track of who gave you what data.
console.log(getUserId());
getUserId();
getUserId() does not take any parameters.
Returns a unique identifier for the current user of this app.
Found a bug in the documentation? Let us know at documentation@code.org
Found a bug in the documentation? Let us know at documentation@code.org