Skip to content

Commit

Permalink
removing store object
Browse files Browse the repository at this point in the history
Signed-off-by: Gaurav Goel <[email protected]>
  • Loading branch information
grvgoel81 committed Jun 6, 2023
1 parent 85b551a commit d695985
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/src/main/java/com/web3auth/core/Web3Auth.kt
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) {
sessionResponse.whenComplete { response, error ->
if (error == null) {
val tempJson = JSONObject(response)
tempJson.put("userInfo", tempJson.get("store"))
tempJson.remove("store")
web3AuthResponse =
gson.fromJson(tempJson.toString(), Web3AuthResponse::class.java)
if (web3AuthResponse.error?.isNotBlank() == true) {
Expand Down Expand Up @@ -214,9 +212,9 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) {
throw Error(Web3AuthError.getError(ErrorCode.NOUSERFOUND))
} else {
if (web3AuthOption.useCoreKitKey == true) {
web3AuthResponse.coreKitEd25519PrivKey
web3AuthResponse.coreKitKey
} else {
web3AuthResponse.ed25519PrivKey
web3AuthResponse.privKey
}
}
return privKey
Expand Down

0 comments on commit d695985

Please sign in to comment.