更新token解析
This commit is contained in:
parent
fac58107b9
commit
d3aaeb7361
|
@ -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'] = [
|
||||
|
|
Loading…
Reference in New Issue