-
Notifications
You must be signed in to change notification settings - Fork 19
Description
使用的是 "xiaodi/think-jwt": "v3.0.0.beta.6"
jwt 配置文件是下面的
return [
'stores' => [
// 单应用
'default' => [
'sso' => [
'enable' => false,
],
'token' => [
'signer_key' => 'tant',
'not_before' => 0,
'expires_at' => 3600,
'refresh_ttL' => 7200,
'signer' => 'Lcobucci\JWT\Signer\Hmac\Sha256',
'type' => 'Header',
'relogin_code' => 50001,
'refresh_code' => 50002,
'iss' => 'client.tant',
'aud' => 'server.tant',
'automatic_renewal' => false,
],
'user' => [
'bind' => true,
'class' => '\app\model\Admins::class',
]
],
],
'manager' => [
// 缓存前缀
'prefix' => 'jwt',
// 黑名单缓存名
'blacklist' => 'blacklist',
// 白名单缓存名
'whitelist' => 'whitelist'
]
];
提示报错
throw new JWTException($store . '应用 Token 配置未完整', 500);
请问是哪里配置未完成?