Differentiate error messages
samuelecarpene opened this issue · comments
Samuele Carpene commented
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
Brent Shaffer commented
It's a bit of a hack, but the value that introduced the error is available via $exception->getCode()
Brent Shaffer commented