Skip to content

Commit 4f7a2c8

Browse files
authored
Update Token.php
1 parent bee701b commit 4f7a2c8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/Service/Token.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ protected function resolveConfig(): array
6464
$store = $this->getStore();
6565
$options = $this->app->config->get("jwt.stores.{$store}.token", []);
6666

67-
return $options;
67+
if (!empty($options)) {
68+
return $options;
69+
}
70+
71+
throw new JWTException($store . '应用 Token 配置未完整', 500);
6872
}
6973

7074
protected function makeId(array $claims)

0 commit comments

Comments
 (0)