You are here

class Auth0JWT in Auth0 Single Sign On 8.2

This class provides access to Auth0 JWT decoder.

@codeCoverageIgnore - Deprecated

Hierarchy

Expanded class hierarchy of Auth0JWT

Deprecated

4.0.0, provided for bring backwards-compat and will be soon removed; use Auth0\SDK\JWTVerifier instead.

1 file declares its use of Auth0JWT
TokenGeneratorTest.php in vendor/auth0/auth0-php/tests/API/Helpers/TokenGeneratorTest.php

File

vendor/auth0/auth0-php/src/Auth0JWT.php, line 12

Namespace

Auth0\SDK
View source
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);
  }

}

Members