From 6129f3a3dbb2dca1456918a87b03070f9157efdf Mon Sep 17 00:00:00 2001 From: Gaurav Goel Date: Thu, 4 Jul 2024 20:25:45 +0530 Subject: [PATCH 1/4] feat: update initialize() method Signed-off-by: Gaurav Goel --- core/src/main/java/com/web3auth/core/Web3Auth.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/web3auth/core/Web3Auth.kt b/core/src/main/java/com/web3auth/core/Web3Auth.kt index 6202ed5..2c5856a 100644 --- a/core/src/main/java/com/web3auth/core/Web3Auth.kt +++ b/core/src/main/java/com/web3auth/core/Web3Auth.kt @@ -182,10 +182,11 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) { this.authorizeSession().whenComplete { resp, error -> if (error == null) { web3AuthResponse = resp - initializeCf.complete(null) + //initializeCf.complete(null) } else { print(error) } + initializeCf.complete(null) } } else { initializeCf.completeExceptionally(err) From c33b97e5031d0d0f82b6128a7a1fc947b807ff7c Mon Sep 17 00:00:00 2001 From: Gaurav Goel Date: Fri, 5 Jul 2024 10:23:26 +0530 Subject: [PATCH 2/4] feat: code cleanup Signed-off-by: Gaurav Goel --- core/src/main/java/com/web3auth/core/Web3Auth.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/main/java/com/web3auth/core/Web3Auth.kt b/core/src/main/java/com/web3auth/core/Web3Auth.kt index 2c5856a..391c823 100644 --- a/core/src/main/java/com/web3auth/core/Web3Auth.kt +++ b/core/src/main/java/com/web3auth/core/Web3Auth.kt @@ -182,7 +182,6 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) { this.authorizeSession().whenComplete { resp, error -> if (error == null) { web3AuthResponse = resp - //initializeCf.complete(null) } else { print(error) } From 5f4e21ec1e09ba4492e3d17046d0a5ffd7c8cc69 Mon Sep 17 00:00:00 2001 From: Gaurav Goel Date: Fri, 5 Jul 2024 10:29:01 +0530 Subject: [PATCH 3/4] feat: code cleanup Signed-off-by: Gaurav Goel --- core/src/main/java/com/web3auth/core/Web3Auth.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/web3auth/core/Web3Auth.kt b/core/src/main/java/com/web3auth/core/Web3Auth.kt index 391c823..31dc0d3 100644 --- a/core/src/main/java/com/web3auth/core/Web3Auth.kt +++ b/core/src/main/java/com/web3auth/core/Web3Auth.kt @@ -184,6 +184,7 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) { web3AuthResponse = resp } else { print(error) + initializeCf.completeExceptionally(error) } initializeCf.complete(null) } From 07dfd82ac31f998f1c5b5829ed86c4a2e16970a6 Mon Sep 17 00:00:00 2001 From: Gaurav Goel Date: Fri, 5 Jul 2024 10:57:49 +0530 Subject: [PATCH 4/4] feat: code cleanup Signed-off-by: Gaurav Goel --- core/src/main/java/com/web3auth/core/Web3Auth.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/core/src/main/java/com/web3auth/core/Web3Auth.kt b/core/src/main/java/com/web3auth/core/Web3Auth.kt index 31dc0d3..391c823 100644 --- a/core/src/main/java/com/web3auth/core/Web3Auth.kt +++ b/core/src/main/java/com/web3auth/core/Web3Auth.kt @@ -184,7 +184,6 @@ class Web3Auth(web3AuthOptions: Web3AuthOptions) { web3AuthResponse = resp } else { print(error) - initializeCf.completeExceptionally(error) } initializeCf.complete(null) }