You are here

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

Sets and persists $refresh_token.

Parameters

string $refresh_token:

Return value

Oauth2Client

1 call to Oauth2Client::setRefreshToken()
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 420

Class

Oauth2Client
This class provides access to Auth0 Platform.

Namespace

Auth0\SDK\API

Code

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