We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bee701b commit 4f7a2c8Copy full SHA for 4f7a2c8
1 file changed
src/Service/Token.php
@@ -64,7 +64,11 @@ protected function resolveConfig(): array
64
$store = $this->getStore();
65
$options = $this->app->config->get("jwt.stores.{$store}.token", []);
66
67
- return $options;
+ if (!empty($options)) {
68
+ return $options;
69
+ }
70
+
71
+ throw new JWTException($store . '应用 Token 配置未完整', 500);
72
}
73
74
protected function makeId(array $claims)
0 commit comments