PHPMailer\PHPMailer\OAuth::getToken PHP Method

getToken() protected method

Get a new AccessToken.
protected getToken ( ) : League\OAuth2\Client\Token\AccessToken
return League\OAuth2\Client\Token\AccessToken
    protected function getToken()
    {
        return $this->provider->getAccessToken($this->getGrant(), ['refresh_token' => $this->oauthRefreshToken]);
    }