Skip to content

Commit c8f888c

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,12 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
7979
//network = web3AuthOptions.web3AuthNetwork
8080
torusUtils = TorusUtils(torusOptions)
8181
SharedPrefsHelper.init(context.applicationContext)
82+
val isSFAValue = SharedPrefsHelper.getBoolean(IS_SFA)
8283
sessionManager = SessionManager(
8384
context,
8485
web3AuthOptions.sessionTime,
8586
web3AuthOptions.redirectUrl,
86-
sessionNamespace = if (web3AuthOptions.sessionNamespace?.isNotEmpty() == true) web3AuthOptions.sessionNamespace else ""
87+
sessionNamespace = if (isSFAValue) "sfa" else ""
8788
)
8889
}
8990

0 commit comments

Comments
 (0)