firebase / php-jwt

PHP package for JWT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Differentiate error messages

samuelecarpene opened this issue · comments

Change into specific messages this error messages (maybe including the value that introduce the error).

https://github.com/firebase/php-jwt/blob/main/src/JWT.php#L152

https://github.com/firebase/php-jwt/blob/main/src/JWT.php#L161

It's a bit of a hack, but the value that introduced the error is available via $exception->getCode()