1, 'role' => 'admin']); $payload = Jwt::decode($token); assert($payload['sub'] === 1); assert($payload['role'] === 'admin'); echo "JwtTest OK\n";