【发布时间】:2020-05-19 07:26:14
【问题描述】:
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()
}
【问题讨论】:
-
嘿!你能提供堆栈跟踪吗?
-
生成该特定 uid 的令牌。您生成的随机数。
标签: agora.io