ChangeLog v1.2.6
生成令牌支持访问令牌和刷新令牌过期时间refresh_exp
use Tinywan\Jwt\JwtToken;
$user = [
'uid' => 2022,
'access_exp' => 1200
'refresh_exp' => 24000
];
$token = JwtToken::generateToken($user);
var_dump(json_encode($token));
Full Changelog: v1.2.5...v1.2.6