We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Redis::setex($cacheKey . ':' . request()->getRealIp(), $args['cache_token_ttl'], $args['access_token']); 自己项目改一下很简单,但是感觉作为插件不是很合适 比如"JWT:TOKEN:1000:127.0.0.1" 当用户切换wifi和移动网络的时候,原token就失效了,然后就需要刷新token或者重新生成token。
The text was updated successfully, but these errors were encountered:
那这个有什么好的解决办法吗?
Sorry, something went wrong.
最简单的就是不要+ip作为key. 这个肯定是根据业务来定的了,我的意思是作为插件还是不能固定写死比较好,最好能提供接口或者配置方案
目前没时间去整
No branches or pull requests
Redis::setex($cacheKey . ':' . request()->getRealIp(), $args['cache_token_ttl'], $args['access_token']);
自己项目改一下很简单,但是感觉作为插件不是很合适
比如"JWT:TOKEN:1000:127.0.0.1"
当用户切换wifi和移动网络的时候,原token就失效了,然后就需要刷新token或者重新生成token。
The text was updated successfully, but these errors were encountered: