سلام روز بخیر
قسمت decode خطای argument میگیرم
include "vendor/autoload.php";
use \\Firebase\\JWT\\JWT;
$alg = 'HS256';
$key = "mohamad1769kj";
$payload = array(
"iss" => "http://mohamad.com",
'aud' => "http://mohamad.com",
'iat' => 1356999524,
'nbf' => 1357000000,
"user_id" => 7
);
$jwt = JWT::encode($payload, $key, $alg);
echo "$jwt";
$jwtDecoded = JWT::decode($jwt, $key, array($alg));
print_r($jwtDecoded);