From f97b93d7f61da2dd7dbdd3d3b6609f1702086ef6 Mon Sep 17 00:00:00 2001 From: Tai Nguyen Date: Mon, 14 Aug 2023 20:46:55 +0700 Subject: [PATCH] Revert "add button google login" This reverts commit 278e6b069585724a3cc24edf7910383d05785245. --- examples/vue-app/src/App.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/vue-app/src/App.vue b/examples/vue-app/src/App.vue index 96c4a5ce..554cc217 100644 --- a/examples/vue-app/src/App.vue +++ b/examples/vue-app/src/App.vue @@ -16,7 +16,6 @@ -
or
@@ -239,7 +238,10 @@ export default defineComponent({ }; }, mounted() { - const torus = new Torus(); + const torus = new Torus({ + apiKey: "torus-default", + buttonPosition: "bottom-left", + }); web3Obj.torus = torus; }, methods: { @@ -308,7 +310,7 @@ export default defineComponent({ console.error(error, "caught in vue-app"); } }, - async login(useWhitelabel: boolean, verifier?: string) { + async login(useWhitelabel: boolean) { try { const { torus, web3 } = web3Obj; (window as any).torus = torus; @@ -336,7 +338,7 @@ export default defineComponent({ mfaLevel: "optional", useWalletConnect: true, }); - await torus?.login({ verifier }); // await torus.ethereum.enable() + await torus?.login(); // await torus.ethereum.enable() web3Obj.setweb3(torus?.provider); torus?.provider.on("chainChanged", (resp) => { console.log(resp, "chainchanged");