Skip to content

Commit 5d09fa2

Browse files
committed
feat: platform parameter added
Signed-off-by: Gaurav Goel <[email protected]>
1 parent a8bc0e6 commit 5d09fa2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions, context: Context) : WebViewResu
164164
val loginIdCf = getLoginId(sessionId, paramsString)
165165
loginIdCf.whenComplete { loginId, error ->
166166
if (error == null) {
167-
val jsonObject = mapOf("loginId" to loginId)
167+
val jsonObject = mapOf(
168+
"loginId" to loginId,
169+
"platform" to "android"
170+
)
168171

169172
val hash = "b64Params=" + gson.toJson(jsonObject).toByteArray(Charsets.UTF_8)
170173
.toBase64URLString()

0 commit comments

Comments
 (0)