class WebAuthn::U2fMigrator

def credential

def credential
  @credential ||=
    begin
      hash = authenticator_data.send(:credential)
      WebAuthn::AuthenticatorData::AttestedCredentialData::Credential.new(
        id: hash[:id],
        public_key: hash[:public_key].serialize
      )
    end
end