Skip to content

Commit

Permalink
Update SessionGuard to handle logout
Browse files Browse the repository at this point in the history
  • Loading branch information
bryannielsen committed Feb 15, 2024
1 parent 6c30100 commit 2626b5f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Auth/SessionGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ public function user()
return $this->user;
}


/**
* Remove the user data from the session and cookies.
*
* @return void
*/
protected function clearUserDataFromStorage()
{
$this->session->remove($this->getName());
ee()->session->destroy();
}

/**
* Get a unique identifier for the auth session value.
*
Expand Down

0 comments on commit 2626b5f

Please sign in to comment.