From c02caebfe7221620d8269533bfb629a86bd9a8f8 Mon Sep 17 00:00:00 2001 From: Gaurav Goel Date: Thu, 26 Sep 2024 13:21:35 +0530 Subject: [PATCH] saveSessionId methos added. --- Sources/SingleFactorAuth/SingleFactorAuth.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/SingleFactorAuth/SingleFactorAuth.swift b/Sources/SingleFactorAuth/SingleFactorAuth.swift index e60e58c..2848b10 100644 --- a/Sources/SingleFactorAuth/SingleFactorAuth.swift +++ b/Sources/SingleFactorAuth/SingleFactorAuth.swift @@ -83,7 +83,8 @@ public class SingleFactorAuth { let privateKey = torusKey.finalKeyData.privKey let sfaKey = SFAKey(privateKey: privateKey, publicAddress: publicAddress) - _ = try await sessionManager.createSession(data: sfaKey) + let sessionId = try await sessionManager.createSession(data: sfaKey) + sessionManager.saveSessionId(sessionId) return sfaKey }