0

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

I have set up as per the steps listed above.

I have an RTM Token Generator and am placing the generated token in this._token = '' as listed in the code sample below.

Receving an error as follows. RTM:ERROR Error Code 5. Signature verification failed

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()
}
4

1 回答 1

0

当您没有从为 rtc 和 RTM 包创建的 UID 生成令牌时,可能会出现此错误。要解决此问题,您需要根据 uuid(随机数)生成令牌。

于 2021-08-25T17:38:31.860 回答