@@ -291,7 +291,7 @@ $jwks = ['keys' => []];
291
291
292
292
// JWK::parseKeySet($jwks) returns an associative array of **kid** to Firebase\JWT\Key
293
293
// objects. Pass this as the second parameter to JWT::decode.
294
- JWT::decode($payload , JWK::parseKeySet($jwks));
294
+ JWT::decode($jwt , JWK::parseKeySet($jwks));
295
295
```
296
296
297
297
Using Cached Key Sets
@@ -350,7 +350,7 @@ use InvalidArgumentException;
350
350
use UnexpectedValueException;
351
351
352
352
try {
353
- $decoded = JWT::decode($payload , $keys);
353
+ $decoded = JWT::decode($jwt , $keys);
354
354
} catch (InvalidArgumentException $e) {
355
355
// provided key/key-array is empty or malformed.
356
356
} catch (DomainException $e) {
@@ -380,7 +380,7 @@ like this:
380
380
use Firebase\JWT\JWT;
381
381
use UnexpectedValueException;
382
382
try {
383
- $decoded = JWT::decode($payload , $keys);
383
+ $decoded = JWT::decode($jwt , $keys);
384
384
} catch (LogicException $e) {
385
385
// errors having to do with environmental setup or malformed JWT Keys
386
386
} catch (UnexpectedValueException $e) {
@@ -395,7 +395,7 @@ instead, you can do the following:
395
395
396
396
``` php
397
397
// return type is stdClass
398
- $decoded = JWT::decode($payload , $keys);
398
+ $decoded = JWT::decode($jwt , $keys);
399
399
400
400
// cast to array
401
401
$decoded = json_decode(json_encode($decoded), true);
0 commit comments