You are here

protected function JWTVerifier::decodeToken in Auth0 Single Sign On 8.2

Wrapper for JWT::decode().

@codeCoverageIgnore

Parameters

string $jwt JWT to decode.:

string|array $secret Secret to use.:

Return value

mixed

1 call to JWTVerifier::decodeToken()
JWTVerifier::verifyAndDecode in vendor/auth0/auth0-php/src/JWTVerifier.php
Verify and decode a JWT.

File

vendor/auth0/auth0-php/src/JWTVerifier.php, line 242

Class

JWTVerifier
Class JWTVerifier. Used to validate JWTs issued by Auth0.

Namespace

Auth0\SDK

Code

protected function decodeToken($jwt, $secret) {
  return JWT::decode($jwt, $secret, $this->supported_algs);
}