I am having a lot of issues trying to decrypt a JWT token using php and Firebase
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require 'vendor/autoload.php';
use \Firebase\JWT\JWT;
try {
$key = 'MYKEY';
$token = $_POST['id_token'];
$data = JWT::decode($token, $key, array('HS256'));
} catch (\Exception $e) {
echo $e;
}
?>
Algorithm not allowed in JWT.php:97
Has anyone ever had this?
Paul