Security/Authentication/Provider/JWTProvider.php
protected function getUserFromPayload(array $payload)
    {
        if (!isset($payload[$this->userIdClaim])) {
            throw $this->createAuthenticationException();
        }

        return $this->userProvider->loadUserByUsername($payload[$this->userIdClaim]);
    }
protected function getUserFromPayload(array $payload)
    {
        if (!isset($payload[$this->userIdClaim])) {
            throw $this->createAuthenticationException();
        }

        return $this->userProvider->loadUserByUsername($payload[$this->userIdClaim]);
    }
protected function getUserFromPayload ( array $ payload ) { if ( ! isset ( $ payload [ $ this -> userIdClaim ] ) ) { throw $ this -> createAuthenticationException ( ) ; } return $ this -> userProvider -> loadUserByUsername ( $ payload [ $ this -> userIdClaim ] ) ; }
Load user from payload, using username by default.
Override this to load by another property.

@param array $payload

@return \Symfony\Component\Security\Core\User\UserInterface
Load user from payload using username by default . Override this to load by another property .