public function setIdToken($idToken)
    {
        $jwtVerifier          = new JWTVerifier([
            'valid_audiences' => ! empty($this->idTokenAud) ? $this->idTokenAud : [ $this->clientId ],
            'supported_algs' => $this->idTokenAlg ? [ $this->idTokenAlg ] : [ 'HS256', 'RS256' ],
            'authorized_iss' => $this->idTokenIss ? $this->idTokenIss : [ 'https://'.$this->domain.'/' ],
            'client_secret' => $this->clientSecret,
            'secret_base64_encoded' => $this->clientSecretEncoded,
            'guzzle_options' => $this->guzzleOptions,
        ]);
        $this->idTokenDecoded = (array) $jwtVerifier->verifyAndDecode( $idToken );

        if (in_array('id_token', $this->persistantMap)) {
            $this->store->set('id_token', $idToken);
        }

        $this->idToken = $idToken;
        return $this;
    }
public function setIdToken($idToken)
    {
        $jwtVerifier          = new JWTVerifier([
            'valid_audiences' => ! empty($this->idTokenAud) ? $this->idTokenAud : [ $this->clientId ],
            'supported_algs' => $this->idTokenAlg ? [ $this->idTokenAlg ] : [ 'HS256', 'RS256' ],
            'authorized_iss' => $this->idTokenIss ? $this->idTokenIss : [ 'https://'.$this->domain.'/' ],
            'client_secret' => $this->clientSecret,
            'secret_base64_encoded' => $this->clientSecretEncoded,
            'guzzle_options' => $this->guzzleOptions,
        ]);
        $this->idTokenDecoded = (array) $jwtVerifier->verifyAndDecode( $idToken );

        if (in_array('id_token', $this->persistantMap)) {
            $this->store->set('id_token', $idToken);
        }

        $this->idToken = $idToken;
        return $this;
    }
public function setIdToken ( $ idToken ) { $ jwtVerifier = new JWTVerifier ( [ 'valid_audiences' => ! empty ( $ this -> idTokenAud ) ? $ this -> idTokenAud : [ $ this -> clientId ] , 'supported_algs' => $ this -> idTokenAlg ? [ $ this -> idTokenAlg ] : [ 'HS256' , 'RS256' ] , 'authorized_iss' => $ this -> idTokenIss ? $ this -> idTokenIss : [ 'https://' . $ this -> domain . '/' ] , 'client_secret' => $ this -> clientSecret , 'secret_base64_encoded' => $ this -> clientSecretEncoded , 'guzzle_options' => $ this -> guzzleOptions , ] ) ; $ this -> idTokenDecoded = ( array ) $ jwtVerifier -> verifyAndDecode ( $ idToken ) ; if ( in_array ( 'id_token' , $ this -> persistantMap ) ) { $ this -> store -> set ( 'id_token' , $ idToken ) ; } $ this -> idToken = $ idToken ; return $ this ; }
Sets, validates, and persists the ID token.

@param string $idToken - ID token returned from the code exchange.

@return \Auth0\SDK\Auth0

@throws CoreException
@throws Exception\InvalidTokenException
Sets validates and persists the ID token .