public function loadUser(JwtAuthValidEvent $event) {
    $token = $event->getToken();
    $uid = $token->getClaim('webid');
    $user = $this->userStorage->load($uid);
    $event->setUser($user);
  }
public function loadUser(JwtAuthValidEvent $event) {
    $token = $event->getToken();
    $uid = $token->getClaim('webid');
    $user = $this->userStorage->load($uid);
    $event->setUser($user);
  }
public function loadUser ( JwtAuthValidEvent $ event ) { $ token = $ event -> getToken ( ) ; $ uid = $ token -> getClaim ( 'webid' ) ; $ user = $ this -> userStorage -> load ( $ uid ) ; $ event -> setUser ( $ user ) ; }
Load and set a Drupal user to be authentication based on the JWT's uid.

@param \Drupal\jwt\Authentication\Event\JwtAuthValidEvent $event
A JwtAuth event.
Load and set a Drupal user to be authentication based on the JWT s uid .