You are here

public function JwtAuthValidEvent::getUser in JSON Web Token Authentication (JWT) 8

Same name and namespace in other branches
  1. 8.0 src/Authentication/Event/JwtAuthValidEvent.php \Drupal\jwt\Authentication\Event\JwtAuthValidEvent::getUser()

Returns a loaded user to use if the token is validated.

Return value

\Drupal\user\UserInterface A loaded user object

File

src/Authentication/Event/JwtAuthValidEvent.php, line 46

Class

JwtAuthValidEvent
Class JwtAuthValidEvent.

Namespace

Drupal\jwt\Authentication\Event

Code

public function getUser() {
  return $this->user;
}