更新token解析

This commit is contained in:
yaooo 2023-11-10 18:13:00 +08:00
parent fac58107b9
commit d3aaeb7361
1 changed files with 3 additions and 3 deletions

View File

@ -39,10 +39,10 @@ class JwtTokenService
$time = time();
$host = app('request')->host();
$params += [
'iss' => $host,
'aud' => $host,
'iss' => $host, //签发者
'aud' => $host, //签发时间
'iat' => $time,
'nbf' => $time,
'nbf' => $time, //生效时间
'exp' => $time + 7 * 24 * 3600,
];
$params['data'] = [