@Override
    public Optional<PasswordlessUserAccount> findUser(final PasswordlessAuthenticationRequest request) {
        val query = new Query().addCriteria(Criteria.where("username").is(request.getUsername()));
        val account = mongoTemplate.findOne(query, PasswordlessUserAccount.class, properties.getCollection());
        val result = Optional.ofNullable(account);
        customizerList
            .stream()
            .filter(BeanSupplier::isNotProxy)
            .forEach(customizer -> customizer.customize(result));
        return result;
    }
This is {@link MongoDbPasswordlessUserAccountStore}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-passwordless-mongo/src/main/java/org/apereo/cas/impl/account/MongoDbPasswordlessUserAccountStore.java