class WebAuthn::U2fMigrator

def authenticator_data

def authenticator_data
  @authenticator_data ||= WebAuthn::FakeAuthenticator::AuthenticatorData.new(
    rp_id_hash: OpenSSL::Digest::SHA256.digest(@app_id.to_s),
    credential: {
      id: credential_id,
      public_key: credential_cose_key
    },
    sign_count: @counter,
    user_present: true,
    user_verified: false,
    aaguid: WebAuthn::AuthenticatorData::AttestedCredentialData::ZEROED_AAGUID
  )
end