Skip to content

Commit 318cbac

Browse files
committed
logout method
1 parent 3e71826 commit 318cbac

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/BaseAuth0.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,15 @@ final public function getAccessToken()
356356
return $this->access_token;
357357
}
358358

359+
/**
360+
* Logout (removes all persisten data)
361+
*/
362+
final public function logout()
363+
{
364+
$this->deleteAllPersistentData();
365+
$this->access_token = NULL;
366+
}
367+
359368
/**
360369
* Requests access token to Auth0 server, using authorization code.
361370
*

0 commit comments

Comments
 (0)