diff --git a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt index b6cd34d..b84caf1 100644 --- a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt +++ b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt @@ -35,7 +35,7 @@ class SingleFactorAuth( init { val torusOptions = TorusOptions( sfaParams.getClientId(), sfaParams.getNetwork(), - sfaParams.getNetworkUrl(), sfaParams.getServerTimeOffset(), true + sfaParams.getLegacyMetaDataHostUrl(), sfaParams.getServerTimeOffset(), true ) network = sfaParams.getNetwork() torusUtils = TorusUtils(torusOptions) diff --git a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SFAParams.kt b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SFAParams.kt index f503ac1..bddc71e 100644 --- a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SFAParams.kt +++ b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SFAParams.kt @@ -10,7 +10,7 @@ class SFAParams( serverTimeOffset: Int = 0, ) { private var clientId: String = "torus-default" - private var networkUrl: String? = networkUrl + private var legacyMetaDataHostUrl: String? = networkUrl private var enableOneKey: Boolean private var serverTimeOffset: Int = serverTimeOffset private var sessionTime: Int = sessionTime @@ -20,7 +20,7 @@ class SFAParams( this.clientId = clientId this.enableOneKey = true this.sessionTime = sessionTime - this.networkUrl = networkUrl + this.legacyMetaDataHostUrl = legacyMetaDataHostUrl this.serverTimeOffset = serverTimeOffset } @@ -31,8 +31,8 @@ class SFAParams( return network } - fun getNetworkUrl(): String? { - return networkUrl + fun getLegacyMetaDataHostUrl(): String? { + return legacyMetaDataHostUrl } fun getEnableOneKey(): Boolean {