Skip to content

Commit 8f0cff2

Browse files
Merge pull request #67 from Web3Auth/feat/refactor
code refactored.
2 parents 56af7a9 + ce737a9 commit 8f0cff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) {
4848
val initParams = mutableMapOf(
4949
"loginProvider" to params?.loginProvider,
5050
"extraLoginOptions" to params?.extraLoginOptions,
51-
"redirectUrl" to web3AuthOption.redirectUrl.toString()
51+
"redirectUrl" to if (params?.redirectUrl != null) params.redirectUrl.toString() else initOptions["redirectUrl"].toString()
5252
)
5353

5454
val paramMap = mapOf(

0 commit comments

Comments
 (0)