-
Notifications
You must be signed in to change notification settings - Fork 22
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
获取方式建议 #19
Comments
我的项目有个场景: |
第二个:2、建议增加验证方法,入参是token和uid,判断两个是否相同 。没太理解什么意思? |
我目前是用: |
$userId = \Tinywan\Jwt\JwtToken::getCurrentId();
if (0 === $request->userId) {
throw new ForbiddenHttpException();
}
...
继续下一步
|
因为第一条,token是放在get里的,所以没法用getCurrentId取到 |
1、建议增加GET的获取方式,有的项目并不是从header里放。
2、建议增加验证方法,入参是token和uid,判断两个是否相同
The text was updated successfully, but these errors were encountered: