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

萌新问下,这些代码是给服务端准备的吗? #212

Open
gradlexyz opened this issue Sep 26, 2019 · 1 comment
Open

萌新问下,这些代码是给服务端准备的吗? #212

gradlexyz opened this issue Sep 26, 2019 · 1 comment

Comments

@gradlexyz
Copy link

比如token,120分钟有效期
看源码可提前设置为118或者119分钟刷新,获取新的token。
服务端需要重新封装这个token,自行写接口让客户端来拉取最新token?可以这么理解吗?

@liyiorg
Copy link
Owner

liyiorg commented Sep 29, 2019

weixin-popular 中提供的token 刷新仅适用于单例模式。多节点方式 token 应中心化处理,可以使用 redis 缓存。 api 接口应放在后台调用,传给前端调用会存在安全问题。

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