Skip to content

Commit

Permalink
[Apple] Switch to firebase/php-jwt v6 (#854)
Browse files Browse the repository at this point in the history
Co-authored-by: Ricardo Čerljenko <ricardo@lloyds.design>
  • Loading branch information
rcerljenko and Ricardo Čerljenko committed May 26, 2022
1 parent cc7f569 commit b34e195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public static function verify($jwt)
$kid = $token->headers()->get('kid');

if (isset($publicKeys[$kid])) {
$publicKey = openssl_pkey_get_details($publicKeys[$kid]);
$publicKey = openssl_pkey_get_details($publicKeys[$kid]->getKeyMaterial());
$constraints = [
new SignedWith(new Sha256(), InMemory::plainText($publicKey['key'])),
new IssuedBy(self::URL),
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"php": "^7.4 || ^8.0",
"ext-json": "*",
"ext-openssl": "*",
"firebase/php-jwt": "^5.2",
"firebase/php-jwt": "^6.2",
"lcobucci/jwt": "^4.1.5",
"socialiteproviders/manager": "~4.0"
},
Expand Down

0 comments on commit b34e195

Please sign in to comment.