Function setUserId
setUserId(userId: string): Promise<void>
Forward a user id to the justtrack backend.
It is safe to call this method multiple times with the same user id. If the user id of the current user changes for some reason, you have to call this method as soon as possible (otherwise we will not be able to recognize the new user id until this method is called).
The user id must be shorter than 4096 characters and consist only of printable ASCII characters (U+0020 to U+007E).
Parameters
Name | Type | Description |
---|---|---|
userId | string | The user id to forward. |
Returns
Promise<void>
A promise which resolves as soon as the backend was notified about the user id.