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