public static ByteArray from(final WebAuthnCredential webAuthnCredential) {
        return FunctionUtils.doUnchecked(() -> ByteArray.fromBase64Url(webAuthnCredential.getToken()));
    }
Convert credential to byte array.

@param webAuthnCredential the web authn credential
@return the byte array
support/cas-server-support-webauthn-core/src/main/java/org/apereo/cas/webauthn/WebAuthnCredential.java