We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1e3579 commit 32e4650Copy full SHA for 32e4650
1 file changed
src/Jwt.php
@@ -224,7 +224,7 @@ protected function validateToken()
224
225
// 验证密钥是否与创建签名的密钥一致
226
if (false === $this->token->verify($this->getSigner(), $this->makeSignerKey())) {
227
- throw new JWTException('此 Token 与 密钥不匹配', 500);
+ throw new JWTException('此 Token 与 密钥不匹配', $this->getReloginCode());
228
}
229
230
// 是否可用
@@ -250,7 +250,7 @@ protected function validateToken()
250
$data->setId($jwt_id);
251
252
if (!$this->token->validate($data)) {
253
- throw new JWTException('此 Token 效验不通过', 500);
+ throw new JWTException('此 Token 效验不通过', $this->getReloginCode());
254
255
256
0 commit comments