Skip to content
New issue

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

如何renewToken #361

Closed
bigbean17 opened this issue Apr 11, 2024 · 1 comment
Closed

如何renewToken #361

bigbean17 opened this issue Apr 11, 2024 · 1 comment

Comments

@bigbean17
Copy link

我在使用Ruby生成token,如果没错的话应该使用的是DynamicKey2::DynamicTokenBuilder,在这个文件里面没有定义renewToken这个方法,但是在comment里面提到了renewToken,想问一下应该如何更新一个token呢?
image

我希望只生成一个token,所有用户只使用这一个token,我的publisher会持续不间断直播,所以不希望每天都生成一个新的token然后让用户重新加入,感谢帮助!

@sunshinexcode
Copy link
Contributor

@bigbean17
1.针对 renewToken, 含义是如果token即将过期, 重新生成token. renewToken 是 RTC SDK 方法, 需要传入新生成的 token.
WeChatWorkScreenshot_c7f9b6c5-5f9f-4d0c-a6b9-ab38b84b15be

2.只生成一个token,所有用户只使用这一个token
可以参考文档 https://doc.shengwang.cn/doc/rtc/android/best-practice/wildcard-token 的"生成通配 Token"部分

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants