更新token解析
This commit is contained in:
parent
fac58107b9
commit
d3aaeb7361
|
@ -39,10 +39,10 @@ class JwtTokenService
|
||||||
$time = time();
|
$time = time();
|
||||||
$host = app('request')->host();
|
$host = app('request')->host();
|
||||||
$params += [
|
$params += [
|
||||||
'iss' => $host,
|
'iss' => $host, //签发者
|
||||||
'aud' => $host,
|
'aud' => $host, //签发时间
|
||||||
'iat' => $time,
|
'iat' => $time,
|
||||||
'nbf' => $time,
|
'nbf' => $time, //生效时间
|
||||||
'exp' => $time + 7 * 24 * 3600,
|
'exp' => $time + 7 * 24 * 3600,
|
||||||
];
|
];
|
||||||
$params['data'] = [
|
$params['data'] = [
|
||||||
|
|
Loading…
Reference in New Issue