Skip to content

Commit

Permalink
add default for allowedOrigin
Browse files Browse the repository at this point in the history
  • Loading branch information
metalurgical committed Sep 17, 2024
1 parent 2b48fba commit 8aa271d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SingleFactorAuth/SingleFactorAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8aa271d

Please sign in to comment.