protected function _decode($token)
    {
        $config = $this->_config;
        try {
            $payload = JWT::decode(
                $token,
                $config['key'] ?: Security::getSalt(),
                $config['allowedAlgs']
            );

            return $payload;
        } catch (Exception $e) {
            if (Configure::read('debug')) {
                throw $e;
            }
            $this->_error = $e;
        }
    }
protected function _decode($token)
    {
        $config = $this->_config;
        try {
            $payload = JWT::decode(
                $token,
                $config['key'] ?: Security::getSalt(),
                $config['allowedAlgs']
            );

            return $payload;
        } catch (Exception $e) {
            if (Configure::read('debug')) {
                throw $e;
            }
            $this->_error = $e;
        }
    }
protected function _decode ( $ token ) { $ config = $ this -> _config ; try { $ payload = JWT :: decode ( $ token , $ config [ 'key' ] ? : Security :: getSalt ( ) , $ config [ 'allowedAlgs' ] ) ; return $ payload ; } catch ( Exception $ e ) { if ( Configure :: read ( 'debug' ) ) { throw $ e ; } $ this -> _error = $ e ; } }
Decode JWT token.

@param string $token JWT token to decode.

@return object|null The JWT's payload as a PHP object, null on failure.
Decode JWT token .