php-jwt icon indicating copy to clipboard operation
php-jwt copied to clipboard

PHP package for JWT

Results 50 php-jwt issues
Sort by recently updated
recently updated
newest added

``` src/JWT.php:199 Firebase\JWT\JWT::encode(): Implicitly marking parameter $keyId as nullable is deprecated, the explicit nullable type must be used instead src/JWK.php:55 Firebase\JWT\JWK::parseKeySet(): Implicitly marking parameter $defaultAlg as nullable is deprecated, the...

This pull-request contains three commits: **[chore: fix latest php-cs-fixer findings](https://github.com/firebase/php-jwt/commit/8b0a51bf13ca77a131e8124aab9632a9f40b8734)** This ensures clean cgl state using the current php-cs-fixer version and ruleset. **[chore: Mitigate PHP8.4 deprecation warnings (#570)](https://github.com/firebase/php-jwt/commit/7c7f4bce5570f9f7f18906ce0082deb4b64f68ee)** This change...

fixing typo on Readme about JWT Decode parameter from `$payload` to `$jwt`. before fixed: ```php JWT::decode($payload, $key); ``` after fixed: ```php JWT::decode($jwt, $key); ```

If a JWT has a nonumeric iat or nbf value, it throws a FATAL error when validating the field.

- Added: `ES512` algorithm - CS: strict types & phpdoc

Fixed JWT::urlsafeB64Decode not actually throwing an InvalidArgumentException on invalid base64 characters, despite doc comment saying that it does.

Allows an instance of Key to be passed as the second argument to `JWT::encode` and `JWT::sign`, making $alg optional. This is more in line with how decoding works and as...

Changed JWT::encode and JWT::jsonEncode so that they now accept an object as well as an array as their first argument. As the result of JWT::decode is an object it only...