Skip to content

thinkphp6 单应用,提示 应用token配置 未完整 #32

@lijiujing

Description

@lijiujing

使用的是 "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);

请问是哪里配置未完成?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions