You are here

public function Auth0::getRefreshToken in Auth0 Single Sign On 8.2

Get refresh token from persisted session or from a code exchange

Return value

string|null

Throws

ApiException (see self::exchange()).

CoreException (see self::exchange()).

File

vendor/auth0/auth0-php/src/Auth0.php, line 528

Class

Auth0
Class Auth0 Provides access to Auth0 authentication functionality.

Namespace

Auth0\SDK

Code

public function getRefreshToken() {
  if (!$this->refreshToken) {
    $this
      ->exchange();
  }
  return $this->refreshToken;
}