Auth0JWT.php in Auth0 Single Sign On 8.2
File
vendor/auth0/auth0-php/src/Auth0JWT.php
View source
<?php
namespace Auth0\SDK;
class Auth0JWT {
public static function decode($jwt, $valid_audiences, $client_secret, array $authorized_iss = [], $cache = null) {
$verifier = new JWTVerifier([
'valid_audiences' => is_array($valid_audiences) ? $valid_audiences : [
$valid_audiences,
],
'client_secret' => $client_secret,
'authorized_iss' => $authorized_iss,
'cache' => $cache,
]);
return $verifier
->verifyAndDecode($jwt);
}
}
Classes
Name |
Description |
Auth0JWT Deprecated |
This class provides access to Auth0 JWT decoder. |