File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
core/src/main/java/com/web3auth/core Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,6 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) {
175
175
sessionResponse.whenComplete { response, error ->
176
176
if (error == null ) {
177
177
val tempJson = JSONObject (response)
178
- tempJson.put(" userInfo" , tempJson.get(" store" ))
179
- tempJson.remove(" store" )
180
178
web3AuthResponse =
181
179
gson.fromJson(tempJson.toString(), Web3AuthResponse ::class .java)
182
180
if (web3AuthResponse.error?.isNotBlank() == true ) {
@@ -214,9 +212,9 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) {
214
212
throw Error (Web3AuthError .getError(ErrorCode .NOUSERFOUND ))
215
213
} else {
216
214
if (web3AuthOption.useCoreKitKey == true ) {
217
- web3AuthResponse.coreKitEd25519PrivKey
215
+ web3AuthResponse.coreKitKey
218
216
} else {
219
- web3AuthResponse.ed25519PrivKey
217
+ web3AuthResponse.privKey
220
218
}
221
219
}
222
220
return privKey
You can’t perform that action at this time.
0 commit comments