Skip to content

Commit f489015

Browse files
Merge pull request #111 from Web3Auth/feat/session-manager-update
feat: bump session-manager sdk
2 parents beac6c7 + 6392bdf commit f489015

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ dependencies {
6969
implementation 'org.web3j:core:4.8.8-android'
7070

7171
//session-manager-sdk
72-
implementation 'com.github.Web3Auth:session-manager-android:3.1.2'
72+
implementation 'com.github.Web3Auth:session-manager-android:3.1.3'
7373

7474
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01"
7575

core/src/main/java/com/web3auth/core/Web3Auth.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,8 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
526526
path: String? = "wallet"
527527
): CompletableFuture<Void> {
528528
val launchWalletServiceCF: CompletableFuture<Void> = CompletableFuture()
529-
val sessionId = SessionManager.getSessionIdFromStorage()
530-
if (sessionId.isNotBlank()) {
529+
val savedSessionId = SessionManager.getSessionIdFromStorage()
530+
if (savedSessionId.isNotBlank()) {
531531
val sdkUrl = Uri.parse(web3AuthOption.walletSdkUrl)
532532

533533
val initOptions = JSONObject(gson.toJson(getInitOptions()))
@@ -548,7 +548,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
548548
walletMap.addProperty(
549549
"loginId", loginId
550550
)
551-
walletMap.addProperty("sessionId", sessionId)
551+
walletMap.addProperty("sessionId", savedSessionId)
552552
walletMap.addProperty("platform", "android")
553553

554554
val walletHash =

0 commit comments

Comments
 (0)