Security/Guard/JWTTokenAuthenticator.php
protected function loadUser(UserProviderInterface $userProvider, array $payload, $identity)
    {
        if ($userProvider instanceof PayloadAwareUserProviderInterface) {
            return $userProvider->loadUserByUsernameAndPayload($identity, $payload);
        }

        return $userProvider->loadUserByUsername($identity);
    }
protected function loadUser(UserProviderInterface $userProvider, array $payload, $identity)
    {
        if ($userProvider instanceof PayloadAwareUserProviderInterface) {
            return $userProvider->loadUserByUsernameAndPayload($identity, $payload);
        }

        return $userProvider->loadUserByUsername($identity);
    }
protected function loadUser ( UserProviderInterface $ userProvider , array $ payload , $ identity ) { if ( $ userProvider instanceof PayloadAwareUserProviderInterface ) { return $ userProvider -> loadUserByUsernameAndPayload ( $ identity , $ payload ) ; } return $ userProvider -> loadUserByUsername ( $ identity ) ; }
Loads the user to authenticate.

@param UserProviderInterface $userProvider An user provider
@param array                 $payload      The token payload
@param string                $identity     The key from which to retrieve the user "username"

@return UserInterface
Loads the user to authenticate .