Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Updates Firebase PHP-JWT to the latest version (
6.1.0
) and adds the now required$alg
argument forJWT::encode
. Also updates theTestHelper
to useFirebase\JWT\Key
forJWT::decode
.Breaking changes outlined in the 6.0.0 release notes: https://github.com/firebase/php-jwt/releases/tag/v6.0.0.
Motivation and Context
6.0.0 fixes a security flaw
firebase/php-jwt#351
https://security.snyk.io/vuln/SNYK-PHP-FIREBASEPHPJWT-2434829
^6.0
is also now required by https://github.com/laravel/passport from ≥10.4.0.How Has This Been Tested?
Existing tests make use of
JWT::encode
andJWT::decode
and pass.Types of changes
Checklist: