Skip to content

Commit b82299e

Browse files
authored
Update README.md
1 parent 6436681 commit b82299e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ return [
3636
'enable' => false,
3737
],
3838
'token' => [
39-
'unique_id_key' => 'uid',
4039
'signer_key' => 'tant',
4140
'not_before' => 0,
4241
'expires_at' => 3600,
@@ -67,7 +66,6 @@ return [
6766

6867
```
6968
## token
70-
* `unique_id_key` 用户唯一标识
7169
* `signer_key` 密钥
7270
* `not_before` 时间前不能使用 默认生成后直接使用
7371
* `refresh_ttL` Token有效期(秒)
@@ -102,7 +100,7 @@ public function login()
102100

103101
// 自动获取当前应用下的jwt配置
104102
return json([
105-
'token' => Jwt::token(['uid' => 1]),
103+
'token' => Jwt::token($uid, ['params1' => 1, 'params2' => 2']),
106104
]);
107105
}
108106
```

0 commit comments

Comments
 (0)