Scenario
A VxAccessTokenClaimsMismatch (20123)
error occurs if the Vivox access token is valid, but the token's parameter details to not match the request the token is being used to authenticate.
Resolution
The following list provides some examples of when this error might occur:
- A join channel VAT is being used to sign in.
- A login VAT is generated for user1, but is being used by user2.
- A login VAT is being used to join a channel.
- A join channel VAT is generated for channel1, but is being used to join channel2.
- A join channel VAT is generated for user1, but is being used by user2.
- A mute VAT is generated to mute user1, but is being used to mute user2.
- A mute VAT is generated to mute user1 in channel1, but is being used to mute user1 in channel2.
- A trxn VAT is generated to enable speech-to-text transcription in channel1, but is being used to enable transcription in channel2.
Ensure that your application generates access tokens for the correct user, channel, and action. Join tokens are used for joining channels, login tokens are used for signing in a user to voice, and so on. Tokens should be used to authenticate actions for the users, channels, and subjects that they were generated for.
For more information, see the Access Token Developer Guide in the Vivox Developer Documentation.