User Token Management

API token management is a login authentication process that allows an amity user to access amity applications in a unified and streamlined environment.

Amity SDK provides AmityUserTokenManager to manage user credentials. This includes an access token that can be used to access some Beta features.

NOTE: Please be aware that we do not provide any API to support the usage of user tokens on the client SDK. To use this user token, you must interact with ASC services with your own effort.

Create a User Token

To create a new user token, refer to the following example and the parameters are.

  • userId: This is a required parameter of type String that represents the unique identifier of the user whose credentials are being managed by the AmityUserTokenManager.

  • displayName : This is an optional parameter of type String that represents the display name of the user. If provided, it will be associated with the user's credentials.

  • authToken : This is an optional parameter of type String that represents the user's authentication token. If provided, it will be used to authenticate the user when accessing the Amity application. For further information about security please visit the security page.

Last updated