public function JwtAuthValidEvent::getUser in JSON Web Token Authentication (JWT) 8.0
Same name and namespace in other branches
- 8 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\EventCode
public function getUser() {
return $this->user;
}