You are here

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

Get ID 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 511

Class

Auth0
Class Auth0 Provides access to Auth0 authentication functionality.

Namespace

Auth0\SDK

Code

public function getIdToken() {
  if (!$this->idToken) {
    $this
      ->exchange();
  }
  return $this->idToken;
}