From 1648818f799341abddd41044853a75d4617ff0ce Mon Sep 17 00:00:00 2001 From: metalurgical <97008724+metalurgical@users.noreply.github.com> Date: Fri, 26 Jul 2024 08:18:41 +0200 Subject: [PATCH] cleanup: Remove unused extra params from ShareRequestItem --- .../jsonRPC/Requests/ShareRequestParams.swift | 38 +++++-------------- 1 file changed, 10 insertions(+), 28 deletions(-) diff --git a/Sources/TorusUtils/Helpers/jsonRPC/Requests/ShareRequestParams.swift b/Sources/TorusUtils/Helpers/jsonRPC/Requests/ShareRequestParams.swift index 637da76c..300cfd72 100644 --- a/Sources/TorusUtils/Helpers/jsonRPC/Requests/ShareRequestParams.swift +++ b/Sources/TorusUtils/Helpers/jsonRPC/Requests/ShareRequestParams.swift @@ -24,34 +24,16 @@ internal struct ShareRequestParams: Codable { // TODO: This is a bit of a mess from here due to legacy reasons and should be cleaned up in future. // Note: Nil values by default are excluded from serialization - public var enable_verifier_id_hash: Bool? // most - public var app_s: String? // meta - public var app_id: String? // meta - public var domain: String? // farcaster - public var nonce: String? // farcaster - public var message: String? // farcaster - public var signature: String? // farcaster, passkey, webauthn - public var clientDataJson: String? // passkey, webauthn - public var authenticatorData: String? // passkey, webauthn - public var publicKey: String? // passkey, webauthn - public var challenge: String? // passkey, webauthn - public var rpOrigin: String? // passkey, webauthn - public var rpId: String? // passkey, webauthn - public var jwk_endpoint: String? // passkey, jwt - public var default_node_set: [String]? // passkey, jwt - public var jwt_verifier_id_field: String? // passkey, jwt - public var jwt_verifier_id_case_sensitive: Bool? // passkey, jwt - public var jwk_keys: String? // passkey, jwt - public var jwt_validation_fields: [String]? // passkey, jwt - public var jwt_validation_values: [String]? // passkey, jwt - public var index: Int? // demo - public var email: String? // demo - public var id: String? // test, jwt, passkey - public var correct_id_token: String? // test - public var verify_param: String? // OrAggregate - public var threshold: Int? // SingleID - public var pub_k_x: String? // Signature - public var pub_k_y: String? // Signature + var nonce: String? // farcaster + var message: String? // farcaster + var signature: String? // farcaster, passkey, webauthn + var clientDataJson: String? // passkey, webauthn + var authenticatorData: String? // passkey, webauthn + var publicKey: String? // passkey, webauthn + var challenge: String? // passkey, webauthn + var rpOrigin: String? // passkey, webauthn + var rpId: String? // passkey, webauthn + var timestamp: Int? // Signature } public var encrypted: String = "yes"