Skip to content

Commit 6392bdf

Browse files
committed
sessionId bugFix in launchWalletServices.
Signed-off-by: Gaurav Goel <[email protected]>
1 parent f3d96ec commit 6392bdf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)