首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >签名验证失败- RTM令牌

签名验证失败- RTM令牌
EN

Stack Overflow用户
提问于 2020-05-19 15:26:14
回答 1查看 681关注 0票数 0

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

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

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

接收错误,如下所示。RTM:错误代码5,签名校验失败

代码语言:javascript
复制
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()
}
EN

回答 1

Stack Overflow用户

发布于 2021-08-25 17:38:32

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61885429

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档