Skip to content

Commit 0a09b22

Browse files
committed
Fix test secret key to meet 64-byte minimum required by HS512
The firebase/php-jwt library requires HMAC keys to be at least as long as the hash output (512 bits for HS512). Updated the test secret to a base64-encoded 64-byte key to satisfy this requirement.
1 parent 23217c7 commit 0a09b22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/JwtSessionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class JwtSessionTest extends TestCase
3030
protected function setUp(): void
3131
{
3232
$this->sessionConfig = (new SessionConfig('example.com'))
33-
->withSecret('secretKey');
33+
->withSecret('c2VjcmV0S2V5X3RoaXNfaXNfYV92ZXJ5X2xvbmdfc2VjcmV0X2tleV90aGF0X2lzXzY0X2J5dGVzX2xvbmchIQ==');
3434

3535
$this->object = new JwtSession($this->sessionConfig);
3636
}

0 commit comments

Comments
 (0)