protected VerificationCheck verifyAttempt(final Principal principal, final CasTwilioMultifactorTokenCredential credential) {
        return FunctionUtils.doAndHandle(() -> {
            val serviceSid = SpringExpressionLanguageValueResolver.getInstance().resolve(properties.getCore().getServiceSid());
            val recipient = principal.getSingleValuedAttribute(properties.getCore().getRecipientAttributeName(), String.class);
            LOGGER.debug("Verifying token for [{}] with recipient [{}]", principal.getId(), recipient);
            return VerificationCheck.creator(serviceSid)
                .setTo(recipient)
                .setCode(credential.getToken().trim())
                .create();
        });
    }
This is {@link CasDefaultTwilioMultifactorAuthenticationService}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-twilio-mfa/src/main/java/org/apereo/cas/mfa/twilio/CasDefaultTwilioMultifactorAuthenticationService.java