解决api接口bug

设置token过期时间为24小时
This commit is contained in:
2020-04-27 09:38:53 +08:00
parent 76254dc394
commit 484f2f0e13
3 changed files with 28 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ return [
'private_key' => env('JWT_PRIVATE_KEY'),
'password' => env('JWT_PASSWORD'),
//JWT time to live
'ttl' => env('JWT_TTL', 60),
'ttl' => env('JWT_TTL', 86400),
//Refresh time to live
'refresh_ttl' => env('JWT_REFRESH_TTL', 20160),
//JWT hashing algorithm