@Override
    protected Event doExecuteInternal(final RequestContext requestContext) throws Exception {
        val authentication = WebUtils.getAuthentication(requestContext);
        val principal = resolvePrincipal(authentication.getPrincipal(), requestContext);
        val sessionToken = WebUtils.getRequestParameterOrAttribute(requestContext, "sessionToken").orElseThrow();
        LOGGER.trace("Checking registration record for [{}] by session id [{}]", principal.getId(), sessionToken);
        val token = ByteArray.fromBase64Url(sessionToken);
        val credentials = webAuthnCredentialRepository.getCredentialIdsForUsername(principal.getId());
        if (!credentials.isEmpty() && sessionManager.getSession(token).isPresent()) {
            return success();
        }
        val request = WebUtils.getHttpServletRequestFromExternalWebflowContext(requestContext);
        WebUtils.produceErrorView(request, HttpStatus.BAD_REQUEST, "Unable to verify registration record");
        return error();
    }
This is {@link WebAuthnAccountSaveRegistrationAction}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-webauthn-core-webflow/src/main/java/org/apereo/cas/webauthn/web/flow/WebAuthnAccountSaveRegistrationAction.java