RenewTokenErrorCode
Error codes after calling renewToken.
- Since
- Added since v4.6.0.
Enumerations
- RENEW_TOKEN_SUCCESS
- (0): Token updated successfully.
- RENEW_TOKEN_FAILURE
- (1): Token update failed. It is recommended to generate a new token and retry calling renewToken.
- RENEW_TOKEN_TOKEN_EXPIRED
- (2): Token update failed because the provided token has expired. It is recommended to generate a token with a longer expiration time and retry calling renewToken.
- RENEW_TOKEN_INVALID_TOKEN
- (3): Token update failed because the provided token is invalid. Common reasons include: the project enabled App Certificate in the Agora Console but did not use a token to join the channel; the
uidspecified injoinChannelis different from the one used to generate the token; the channel name specified injoinChannelis different from the one used to generate the token. It is recommended to check the token generation process, generate a new token, and retry calling renewToken. - RENEW_TOKEN_INVALID_CHANNEL_NAME
- (4): Token update failed because the channel name in the token does not match the current channel. It is recommended to check the channel name, generate a new token, and retry calling renewToken.
- RENEW_TOKEN_INCONSISTENT_APPID
- (5): Token update failed because the App ID in the token does not match the current App ID. It is recommended to check the App ID, generate a new token, and retry calling renewToken.
- RENEW_TOKEN_CANCELED_BY_NEW_REQUEST
- (6): Token update was canceled because a new request was initiated, and the previous one was canceled.