You are here

final public function Oauth2Client::logout in Auth0 Single Sign On 8.2

Logout (removes all persistent data)

File

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

Class

Oauth2Client
This class provides access to Auth0 Platform.

Namespace

Auth0\SDK\API

Code

public final function logout() {
  $this
    ->deleteAllPersistentData();
  $this->access_token = null;
  $this->user = null;
  $this->id_token = null;
  $this->refresh_token = null;
}