Skip to content

Commit

Permalink
- aktualizace firebase/php-jwt
Browse files Browse the repository at this point in the history
- priznana zavislost na ext-openssl
- uprava tokenizeru dle nove verze
  • Loading branch information
petrgala committed Mar 14, 2023
1 parent ad824ed commit 87b4c18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
composer.lock
vendor
.idea/
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
],
"require": {
"php": ">=7.4",
"ext-openssl": "*",
"nette/di": "^3.0",
"firebase/php-jwt": "~5.0"
"firebase/php-jwt": "^v6.4"
},
"require-dev": {
"pd/coding-standard": "^1.27",
Expand Down
2 changes: 1 addition & 1 deletion src/Tokenizer/AsymetricJwtTokenizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function create(\Pd\PublicAccess\PublicAccess $object): string
public function decode(string $token): \stdClass
{
/** @var \stdClass $decode */
$decode = \Firebase\JWT\JWT::decode($token, $this->publicKey, [self::ALGORITHM]);
$decode = \Firebase\JWT\JWT::decode($token, new \Firebase\JWT\Key($this->publicKey, self::ALGORITHM));

return $decode;
}
Expand Down

0 comments on commit 87b4c18

Please sign in to comment.