Hi im very new with JWT vercations
i try to decode the Token from the extension with PHP
require __DIR__ . '/../vendor/autoload.php';
use Firebase\JWT\JWT;
use Firebase\JWT\Key;
$key = 'Extension Secret';
$jwt ='eyJhbGciOiJIUzI1NiIsInR5cCI6Ik...';
$decoded = JWT::decode($jwt, new Key($key, 'HS256'));
print_r($decoded);
the jwt.php is a test side
put i get an error:
AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Firebase\JWT\SignatureInvalidException: Signature verification failed in /var/www/vhosts/gamblemilo.com/vendor/firebase/php-jwt/src/JWT.php:150\nStack trace:\n#0 /var/www/vhosts/gamblemilo.com/httpdocs/jwt.php(8): Firebase\JWT\JWT::decode()\n#1 {main}\n thrown in /var/www/vhosts/gamblemilo.com/vendor/firebase/php-jwt/src/JWT.php on line 150’
can some one hep me with the right code?
Tanks!