You are here

public function Oauth2Client::setIdToken in Auth0 Single Sign On 8.2

Sets and persists $id_token.

Parameters

string $id_token:

Return value

Oauth2Client

1 call to Oauth2Client::setIdToken()
Oauth2Client::exchangeCode in vendor/auth0/auth0-php/src/API/Oauth2Client.php
Exchanges the code from the URI parameters for an access token, id token and user info

File

vendor/auth0/auth0-php/src/API/Oauth2Client.php, line 465

Class

Oauth2Client
This class provides access to Auth0 Platform.

Namespace

Auth0\SDK\API

Code

public function setIdToken($id_token) {
  $key = array_search('id_token', $this->persistantMap);
  if ($key !== false) {
    $this->store
      ->set('id_token', $id_token);
  }
  $this->id_token = $id_token;
  return $this;
}