From 2629f90fc29c5f9f90bbf9be77784fedb7581025 Mon Sep 17 00:00:00 2001 From: metalurgical <97008724+metalurgical@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:02:29 +0200 Subject: [PATCH 1/2] update getTorusKey and getAggregateTorusKey to be public --- Sources/CustomAuth/CustomAuth.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/CustomAuth/CustomAuth.swift b/Sources/CustomAuth/CustomAuth.swift index 3eeb158..2ea27aa 100644 --- a/Sources/CustomAuth/CustomAuth.swift +++ b/Sources/CustomAuth/CustomAuth.swift @@ -159,7 +159,7 @@ public class CustomAuth { /// - Returns: `TorusKey` /// /// - Throws: `CASDKError`, `TorusUtilError`, `FetchNodeError` - func getTorusKey(verifier: String, verifier_id: String, verifierParams: VerifierParams, idToken: String, extraParams: TorusUtilsExtraParams? = nil) async throws -> TorusKey { + public func getTorusKey(verifier: String, verifier_id: String, verifierParams: VerifierParams, idToken: String, extraParams: TorusUtilsExtraParams? = nil) async throws -> TorusKey { let nodeDetails = try await nodeDetailManager.getNodeDetails(verifier: verifier, verifierID: verifier_id) return try await torus.retrieveShares(endpoints: nodeDetails.getTorusNodeEndpoints(), verifier: verifier, verifierParams: verifierParams, idToken: idToken) @@ -175,7 +175,7 @@ public class CustomAuth { /// - Returns: `TorusKey` /// /// - Throws: `CASDKError`, `TorusUtilError`, `FetchNodeError` - func getAggregateTorusKey(verifier: String, verifierParams: VerifierParams, subVerifierInfoArray: [TorusSubVerifierInfo]) async throws -> TorusKey { + public func getAggregateTorusKey(verifier: String, verifierParams: VerifierParams, subVerifierInfoArray: [TorusSubVerifierInfo]) async throws -> TorusKey { let nodeDetails = try await nodeDetailManager.getNodeDetails(verifier: verifier, verifierID: verifierParams.verifier_id) var aggregateIdTokenSeeds: [String] = [] From baeeaeadec66be719c0cc151899d187de6bb649d Mon Sep 17 00:00:00 2001 From: metalurgical <97008724+metalurgical@users.noreply.github.com> Date: Mon, 4 Nov 2024 17:12:17 +0200 Subject: [PATCH 2/2] update podspec --- CustomAuth.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CustomAuth.podspec b/CustomAuth.podspec index c2ebec7..5c12d39 100644 --- a/CustomAuth.podspec +++ b/CustomAuth.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "CustomAuth" - spec.version = "11.0.0" + spec.version = "11.0.1" spec.platform = :ios, "14.0" spec.summary = "Swift SDK that allows applications to directly interact with the Torus Network, similar to how Torus Wallet does." spec.homepage = "https://github.com/torusresearch/customauth-swift-sdk"