Skip to content

Commit

Permalink
feat: Resolved PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Goel <[email protected]>
  • Loading branch information
grvgoel81 authored and Gaurav Goel committed Sep 18, 2024
1 parent c3f402e commit 4b80a71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,7 +20,7 @@ class SFAParams(
this.clientId = clientId
this.enableOneKey = true
this.sessionTime = sessionTime
this.networkUrl = networkUrl
this.legacyMetaDataHostUrl = legacyMetaDataHostUrl
this.serverTimeOffset = serverTimeOffset
}

Expand All @@ -31,8 +31,8 @@ class SFAParams(
return network
}

fun getNetworkUrl(): String? {
return networkUrl
fun getLegacyMetaDataHostUrl(): String? {
return legacyMetaDataHostUrl
}

fun getEnableOneKey(): Boolean {
Expand Down

0 comments on commit 4b80a71

Please sign in to comment.