update
This commit is contained in:
23
config/autoload/extension-identity.global.php
Normal file
23
config/autoload/extension-identity.global.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
|
||||
return [
|
||||
'identity' => [
|
||||
|
||||
// 指定为一个用户
|
||||
// 返回false 则不验证
|
||||
'fakeId' => false,
|
||||
|
||||
// 前端header传递token的key
|
||||
'tokenKey' => 'token',
|
||||
|
||||
// pc token 可用时长, 默认40分钟
|
||||
'expire' => 60 * 40,
|
||||
|
||||
// 小程序token可用时长, 默认2小时
|
||||
'miniExpire' => 60 * 60 * 2,
|
||||
|
||||
// debugMode token 可用时长
|
||||
'debugExpire' => 60 * 60 * 24,
|
||||
]
|
||||
];
|
Reference in New Issue
Block a user