<?php

require __DIR__ . '/../app/Core/Jwt.php';

use App\Core\Jwt;

$token = Jwt::encode(['sub' => 1, 'role' => 'admin']);
$payload = Jwt::decode($token);

assert($payload['sub'] === 1);
assert($payload['role'] === 'admin');

echo "JwtTest OK\n";
