Skip to content

Commit 70cc54f

Browse files
committed
feat: Modify sessionManager initialization
Signed-off-by: Gaurav Goel <[email protected]>
1 parent 21fe372 commit 70cc54f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,12 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
353353
loginParams: LoginParams
354354
): CompletableFuture<Web3AuthResponse> {
355355
this.loginParams = loginParams
356+
sessionManager = SessionManager(
357+
baseContext,
358+
web3AuthOption.sessionTime,
359+
web3AuthOption.redirectUrl,
360+
sessionNamespace = if (!loginParams.idToken.isNullOrEmpty()) "sfa" else ""
361+
)
356362
if (loginParams.idToken.isNullOrEmpty()) {
357363
if (!loginParams.loginHint.isNullOrEmpty()) {
358364
val updatedExtraLoginOptions = loginParams.extraLoginOptions?.copy(

0 commit comments

Comments
 (0)