Skip to content

Commit bc9b2ad

Browse files
authored
chore: fix ReadmeTest (#636)
1 parent 32b5ea0 commit bc9b2ad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/ReadmeTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,9 @@ public function testUsingCachedKeySets()
150150

151151
$codeblock = $this->extractCodeBlock('Using Cached Key Sets');
152152

153+
$jwk = json_decode(file_get_contents('https://www.gstatic.com/iap/verify/public_key-jwk'), true);
153154
$privateKey = file_get_contents(__DIR__ . '/data/ecdsa256-private.pem');
154-
$jwt = JWT::encode($this->payload, $privateKey, 'ES256', '_xiGEQ');
155+
$jwt = JWT::encode($this->payload, $privateKey, 'ES256', $jwk['keys'][0]['kid']);
155156

156157
$codeblock->replace('eyJhbGci...', $jwt);
157158
$codeblock->invoke();

0 commit comments

Comments
 (0)