签名验证失败-RTM令牌

时间:2020-05-19 07:26:14

标签: agora.io

https://github.com/AgoraIO-Usecase/Video-Calling/tree/master/OpenDuo-Web

我已按照上面列出的步骤进行设置。

我有一个RTM令牌生成器,并将生成的令牌放置在this._token =''中,如下面的代码示例中所列。

收到如下错误。 RTM:ERROR错误代码5。签名验证失败

export default class RTMClient {
constructor () {
this._client = AgoraRTM.createInstance(appID)
this._uid = ''
this._token = '' // token placed here after generating 
this._invitation = null
this._remoteInvitation = null
this.eventBus = new EventEmitter() 

//This status is used to control whether the phone can be accessed
//The 'onLine' is ok.
this.status = 'offLine' //onLine, offLine, calling, meeting

this.peerInvitation()
}

0 个答案:

没有答案