protected function OAuth::getToken

5.x OAuth.php protected OAuth::getToken()

Get a new AccessToken.

Return value

AccessToken

1 call to OAuth::getToken()
OAuth::getOauth64 in inc/PHPMailer/src/OAuth.php
Generate a base64-encoded OAuth token.

File

inc/PHPMailer/src/OAuth.php, line 110

Class

OAuth
OAuth - OAuth2 authentication wrapper class. Uses the oauth2-client package from the League of Extraordinary Packages.

Namespace

PHPMailer\PHPMailer

Code

protected function getToken() 
 {
  return $this->provider->getAccessToken(
  $this->getGrant(), 
  ['refresh_token' => $this->oauthRefreshToken], 
  );
}