private function tokenFromResponse(array $data): Token
    {
        $token = Token::fromResponseData($data);
        // Save the token to the cache and return it.
        $this->tokenCachePool->setToken($this, $token);

        return $token;
    }
private function tokenFromResponse(array $data): Token
    {
        $token = Token::fromResponseData($data);
        // Save the token to the cache and return it.
        $this->tokenCachePool->setToken($this, $token);

        return $token;
    }
private function tokenFromResponse ( array $ data ) : Token { $ token = Token :: fromResponseData ( $ data ) ; // Save the token to the cache and return it. $ this -> tokenCachePool -> setToken ( $ this , $ token ) ; return $ token ; }
Instantiate and cache a token.

@param array $data The mpx signIn() response data.

@return Token The new token.
Instantiate and cache a token .