From 8aa271dbcd805ee01f4854cb92fcddf8d13d5938 Mon Sep 17 00:00:00 2001 From: metalurgical <97008724+metalurgical@users.noreply.github.com> Date: Tue, 17 Sep 2024 06:21:34 +0200 Subject: [PATCH] add default for allowedOrigin --- Sources/SingleFactorAuth/SingleFactorAuth.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SingleFactorAuth/SingleFactorAuth.swift b/Sources/SingleFactorAuth/SingleFactorAuth.swift index ee1da24..73ae6d8 100644 --- a/Sources/SingleFactorAuth/SingleFactorAuth.swift +++ b/Sources/SingleFactorAuth/SingleFactorAuth.swift @@ -14,7 +14,7 @@ public class SingleFactorAuth { private var sessionManager: SessionManager public init(singleFactorAuthArgs: SFAParams, sessionTime: Int) throws { - sessionManager = SessionManager(sessionTime: sessionTime) + sessionManager = SessionManager(sessionTime: sessionTime, allowedOrigin: Bundle.main.bundleIdentifier ?? "single-factor-auth-swift") nodeDetailManager = NodeDetailManager(network: singleFactorAuthArgs.getNetwork()) let torusOptions = TorusOptions(clientId: singleFactorAuthArgs.getWeb3AuthClientId(), network: singleFactorAuthArgs.getNetwork(), enableOneKey: true) try torusUtils = TorusUtils(params: torusOptions)