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 }