123,
"username" => "example_user"
);
$jwt = JWT::encode($payload, $key);
try {
$decoded = JWT::decode($jwt, $key, array('HS256'));
print_r((array) $decoded);
} catch (Exception $e) {
echo '验证失败:' . $e->getMessage();
}
?>
顶一下
(0)
0%
踩一下
(0)
0%
- 相关评论
- 我要评论
-