This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Description
I'm trying to decode a jwt token using this command on my Laravel application:
$decoded = JWT::decode($access_token, $my_secret, array('HS256'));
but I'm having this message error all the time:
UnexpectedValueException: Algorithm not allowed in file C:\myserver\vendor\fproject\php-jwt\src\JWT.php.
When I use the same token on site jwt.io, the token is correctlly decoded. I'm doing everything based on documents on your site.
Any ideas about what is happenning here?