firebase / php-jwt

PHP package for JWT
BSD 3-Clause "New" or "Revised" License
9.38k stars 1.27k forks source link

Uncaught Error: Firebase\JWT\JWT::decode(): Argument #3 ($headers) cannot be passed by reference #516

Closed jcubic closed 1 year ago

jcubic commented 1 year ago

Got this error when trying to use the library in PHP 8.2.6

$token = JWT::decode($jwt, $env['secret'], ['HS512']);
jcubic commented 1 year ago

It seems the API changed, I was reading this article: How to Secure a PHP API Using JWT.