Skip to content

ChangeLog v1.2.6

Compare
Choose a tag to compare
@Tinywan Tinywan released this 28 Jun 07:14
· 56 commits to main since this release

生成令牌支持访问令牌和刷新令牌过期时间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