Skip to content

Commit

Permalink
fix: add web3AuthClientId
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow committed Feb 23, 2024
1 parent b0088fd commit 30a8d1f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Sources/SingleFactorAuth/SingleFactorAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public class SingleFactorAuth {
enableOneKey: true,
signerHost: singleFactorAuthArgs.getSignerUrl()! + "/api/sign",
allowHost: singleFactorAuthArgs.getSignerUrl()! + "/api/allow",
network: singleFactorAuthArgs.getNetwork()
network: singleFactorAuthArgs.getNetwork(),
clientId: singleFactorAuthArgs.getWeb3AuthClientId()
)
}

Expand Down
8 changes: 7 additions & 1 deletion Sources/SingleFactorAuth/SingleFactorAuthArgs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ public class SingleFactorAuthArgs {

private var network: TorusNetwork
private var networkUrl: String
private var web3AuthClientId: String

public init(network: TorusNetwork, networkUrl: String = "") {
public init(web3AuthClientId: String = "", network: TorusNetwork, networkUrl: String = "") {
self.network = network
self.networkUrl = networkUrl
self.web3AuthClientId = web3AuthClientId
}

public func getWeb3AuthClientId() -> String {
return web3AuthClientId
}

public func getNetwork() -> TorusNetwork {
Expand Down

0 comments on commit 30a8d1f

Please sign in to comment.