We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f786554 commit 207c22eCopy full SHA for 207c22e
1 file changed
src/Jwt.php
@@ -300,6 +300,14 @@ protected function automaticRenewalToken(Token $token)
300
*/
301
protected function validateToken(Token $token)
302
{
303
+ $claims = $token->getClaims();
304
+
305
+ // 注销没有store参数的Token
306
+ if (!is_set($claims['store'])) {
307
+ $this->logout($token);
308
+ throw new TokenAlreadyEexpired('此 Token 已注销,请重新登录', $this->getReloginCode());
309
+ }
310
311
// 是否在黑名单
312
if ($this->app['jwt.manager']->hasBlacklist($token)) {
313
throw new TokenAlreadyEexpired('此 Token 已注销,请重新登录', $this->getReloginCode());
0 commit comments