We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buildTokenWithAccount
Hello,
I'm creating a token on a Node server and then attempting to join from a React Native client with the following lines:
Server: RtcTokenBuilder.buildTokenWithAccount(AGORA_CONFIG.appId, AGORA_CONFIG.appCertificate, channelName, 'user-id-1', AGORA_CONFIG.role, AGORA_CONFIG.privilegeExpiredTs), Client: await audioEngine.current.joinChannelWithUserAccount(m.callToken, m.groupId, 'user-id-1')
RtcTokenBuilder.buildTokenWithAccount(AGORA_CONFIG.appId, AGORA_CONFIG.appCertificate, channelName, 'user-id-1', AGORA_CONFIG.role, AGORA_CONFIG.privilegeExpiredTs),
await audioEngine.current.joinChannelWithUserAccount(m.callToken, m.groupId, 'user-id-1')
I receive a 110 error callback with the above when I expect to join successfully. I am successfully able to join when using uids like below:
110
Server: RtcTokenBuilder.buildTokenWithUid(AGORA_CONFIG.appId, AGORA_CONFIG.appCertificate, channelName, 0, AGORA_CONFIG.role, AGORA_CONFIG.privilegeExpiredTs), Client: await audioEngine.current.joinChannelWithAccount(m.callToken, m.groupId, null, 0)
RtcTokenBuilder.buildTokenWithUid(AGORA_CONFIG.appId, AGORA_CONFIG.appCertificate, channelName, 0, AGORA_CONFIG.role, AGORA_CONFIG.privilegeExpiredTs),
await audioEngine.current.joinChannelWithAccount(m.callToken, m.groupId, null, 0)
The text was updated successfully, but these errors were encountered:
could you pls share a token you generated with me?
Sorry, something went wrong.
No branches or pull requests
Hello,
I'm creating a token on a Node server and then attempting to join from a React Native client with the following lines:
Server:
RtcTokenBuilder.buildTokenWithAccount(AGORA_CONFIG.appId, AGORA_CONFIG.appCertificate, channelName, 'user-id-1', AGORA_CONFIG.role, AGORA_CONFIG.privilegeExpiredTs),
Client:
await audioEngine.current.joinChannelWithUserAccount(m.callToken, m.groupId, 'user-id-1')
I receive a
110
error callback with the above when I expect to join successfully. I am successfully able to join when using uids like below:Server:
RtcTokenBuilder.buildTokenWithUid(AGORA_CONFIG.appId, AGORA_CONFIG.appCertificate, channelName, 0, AGORA_CONFIG.role, AGORA_CONFIG.privilegeExpiredTs),
Client:
await audioEngine.current.joinChannelWithAccount(m.callToken, m.groupId, null, 0)
The text was updated successfully, but these errors were encountered: