@Override
    protected Event doExecuteInternal(final RequestContext requestContext) {
        val authentication = WebUtils.getAuthentication(requestContext);
        val principal = resolvePrincipal(authentication.getPrincipal(), requestContext);
        LOGGER.trace("Checking registration record for [{}]", principal.getId());
        val registrations = webAuthnCredentialRepository.getRegistrationsByUsername(principal.getId());
        if (!registrations.isEmpty()) {
            return success();
        }
        return eventFactory.event(this, CasWebflowConstants.TRANSITION_ID_REGISTER);
    }
This is {@link WebAuthnAccountCheckRegistrationAction}.

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