Skip to content

Commit e9b774a

Browse files
committed
Update JwtWrapper to next version (Break Compatibility)
1 parent b7f762f commit e9b774a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"php": ">=7.4",
1313
"byjg/micro-orm": "4.9.*",
1414
"byjg/cache-engine": "4.9.*",
15-
"byjg/jwt-wrapper": "4.9.*"
15+
"byjg/jwt-wrapper": "5.0.x.dev"
1616
},
1717
"require-dev": {
1818
"phpunit/phpunit": "5.7.*|7.4.*|^9.5"

tests/UsersAnyDatasetByUsernameTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use ByJG\Authenticate\Exception\NotAuthenticatedException;
99
use ByJG\Authenticate\Exception\UserExistsException;
1010
use ByJG\Authenticate\Model\UserModel;
11-
use ByJG\Util\JwtKeySecret;
11+
use ByJG\Util\JwtHashHmacSecret;
1212
use ByJG\Util\JwtWrapper;
1313
use PHPUnit\Framework\TestCase;
1414

@@ -219,7 +219,7 @@ protected function expectedToken($tokenData, $login, $userId)
219219
{
220220
$loginCreated = $this->__chooseValue('user2', 'user2@gmail.com');
221221

222-
$jwtWrapper = new JwtWrapper('api.test.com', new JwtKeySecret('12345678', false));
222+
$jwtWrapper = new JwtWrapper('api.test.com', new JwtHashHmacSecret('12345678', false));
223223

224224
$token = $this->object->createAuthToken(
225225
$loginCreated,
@@ -259,7 +259,7 @@ public function testValidateTokenWithAnotherUser()
259259
$login = $this->__chooseValue('user2', 'user2@gmail.com');
260260
$loginToFail = $this->__chooseValue('user1', 'user1@gmail.com');
261261

262-
$jwtWrapper = new JwtWrapper('api.test.com', new JwtKeySecret('1234567'));
262+
$jwtWrapper = new JwtWrapper('api.test.com', new JwtHashHmacSecret('1234567'));
263263
$token = $this->object->createAuthToken(
264264
$login,
265265
'pwd2',

0 commit comments

Comments
 (0)