Skip to content

Commit

Permalink
saveSessionId methos added.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Goel committed Sep 26, 2024
1 parent a953664 commit c02caeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/SingleFactorAuth/SingleFactorAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c02caeb

Please sign in to comment.