@Override
    public List<MultifactorAuthenticationRegisteredDevice> findRegisteredDevices(final Principal principal) {
        val registrations = webAuthnCredentialRepository.getRegistrationsByUsername(principal.getId());
        return registrations
            .stream()
            .filter(Objects::nonNull)
            .map(this::mapWebAuthnAccount)
            .filter(Objects::nonNull)
            .collect(Collectors.toList());
    }
This is {@link WebAuthnMultifactorAuthenticationDeviceManager}.

@author Misagh Moayyed
@since 7.1.0
support/cas-server-support-webauthn-core/src/main/java/org/apereo/cas/webauthn/WebAuthnMultifactorAuthenticationDeviceManager.java