From 0dae96e6f15388f8c4f9f078480f11d567002af1 Mon Sep 17 00:00:00 2001 From: Gaurav Goel Date: Mon, 16 Dec 2024 12:30:20 +0530 Subject: [PATCH] feat: replace namespace with sessionNamespace in b64Params Signed-off-by: Gaurav Goel --- .../java/com/web3auth/singlefactorauth/SingleFactorAuth.kt | 4 ++-- .../java/com/web3auth/singlefactorauth/types/SignMessage.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt index 161ae12..c8ea119 100644 --- a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt +++ b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/SingleFactorAuth.kt @@ -369,7 +369,7 @@ class SingleFactorAuth( ) walletMap.addProperty("sessionId", sessionId) walletMap.addProperty("platform", "android") - walletMap.addProperty("namespace", "sfa") + walletMap.addProperty("sessionNamespace", "sfa") val walletHash = "b64Params=" + gson.toJson(walletMap).toByteArray(Charsets.UTF_8) @@ -441,7 +441,7 @@ class SingleFactorAuth( params = gson.toJson(requestParams) ), appState = appState.let { it }, - namespace = "sfa" + sessionNamespace = "sfa" ) val signMessageHash = diff --git a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SignMessage.kt b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SignMessage.kt index edc49fa..9517c17 100644 --- a/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SignMessage.kt +++ b/singlefactorauth/src/main/java/com/web3auth/singlefactorauth/types/SignMessage.kt @@ -6,7 +6,7 @@ data class SignMessage( val platform: String = "android", val request: RequestData, val appState: String? = null, - val namespace: String = "sfa" + val sessionNamespace: String = "sfa" ) data class RequestData(