We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e07bfc7 + b82299e commit a37ec6aCopy full SHA for a37ec6a
1 file changed
README.md
@@ -36,7 +36,6 @@ return [
36
'enable' => false,
37
],
38
'token' => [
39
- 'unique_id_key' => 'uid',
40
'signer_key' => 'tant',
41
'not_before' => 0,
42
'expires_at' => 3600,
@@ -67,7 +66,6 @@ return [
67
66
68
```
69
## token
70
-* `unique_id_key` 用户唯一标识
71
* `signer_key` 密钥
72
* `not_before` 时间前不能使用 默认生成后直接使用
73
* `refresh_ttL` Token有效期(秒)
@@ -102,7 +100,7 @@ public function login()
102
100
103
101
// 自动获取当前应用下的jwt配置
104
return json([
105
- 'token' => Jwt::token(['uid' => 1]),
+ 'token' => Jwt::token($uid, ['params1' => 1, 'params2' => 2']),
106
]);
107
}
108
0 commit comments