Skip to content

Commit

Permalink
Require firebase/php-jwt v6 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
marmichalski authored Mar 6, 2024
1 parent 6a1c7c3 commit a394f7b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"require": {
"php": ">=7.4",
"ext-json": "*",
"firebase/php-jwt": "^5.0",
"firebase/php-jwt": "^6.3",
"ramsey/uuid": "^3.8 || ^4.0"
},
"require-dev": {
Expand Down
23 changes: 14 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/KnoxTokenTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ class KnoxTokenTest extends TestCase
{
public function testSignClientIdentifier(): void
{
self::assertEquals(713, \strlen(KnoxToken::signClientIdentifier(
self::assertEquals(709, \strlen(KnoxToken::signClientIdentifier(
'a33a7593-dbaf-457f-87be-19243a421aec',
Certificate::fromPath(__DIR__.'/keys.json')
)));
}

public function testSignAccessToken(): void
{
self::assertEquals(707, \strlen(KnoxToken::signAccessToken(
self::assertEquals(703, \strlen(KnoxToken::signAccessToken(
'd13d112e-8e77-4243-b795-ed4e1cf15cf9',
Certificate::fromPath(__DIR__.'/keys.json')
)));
Expand Down

0 comments on commit a394f7b

Please sign in to comment.