public function convertLegacyToken(): void
    {
        $tokens = $this->requestAuthTokens(
            $this->auth->getPayload(),
            self::TRANSITION_URL
        );

        $this->accessToken = $tokens['accessToken'];
        $this->refreshToken = $tokens['refreshToken'];
        $this->ttl = $tokens['expiresIn'];
    }
public function convertLegacyToken(): void
    {
        $tokens = $this->requestAuthTokens(
            $this->auth->getPayload(),
            self::TRANSITION_URL
        );

        $this->accessToken = $tokens['accessToken'];
        $this->refreshToken = $tokens['refreshToken'];
        $this->ttl = $tokens['expiresIn'];
    }
public function convertLegacyToken ( ) : void { $ tokens = $ this -> requestAuthTokens ( $ this -> auth -> getPayload ( ) , self :: TRANSITION_URL ) ; $ this -> accessToken = $ tokens [ 'accessToken' ] ; $ this -> refreshToken = $ tokens [ 'refreshToken' ] ; $ this -> ttl = $ tokens [ 'expiresIn' ] ; }
This conversion helper is provided as a developer convenience while
transitioning from v1 to v2 of the API. On June 6, 2019, we will sunset
v1 of the API. At that time, this method will no longer function and we
will remove it from the SDK.

@deprecated
This conversion helper is provided as a developer convenience while transitioning from v1 to v2 of the API . On June 6 2019 we will sunset v1 of the API . At that time this method will no longer function and we will remove it from the SDK .