Customized User Id¶
By default, the SDK automatically generates a unique ID for the user, which does not have any identifying attributes and can only distinguish between different user attributes.
For this reason we provide an additional API to add different identification attributes to the current user.
Properties | Type | Description |
---|---|---|
user.id | string | User ID |
user.name | string | User nickname or username |
user.email | string | User Email |
The following attributes are optional, but it is recommended that at least one of them be provided.
Adding User Identification¶
Download files imported locally (download address)
Introduction: (see WeChat official npm introduction method)
Remove User Identification¶
Download files imported locally (download address)
Introduction: (see WeChat official npm introduction method)