From 9c3e769b9dcf4e1c6978f4f602c9765941d52d6a Mon Sep 17 00:00:00 2001 From: Chaitanya Potti Date: Thu, 12 Dec 2024 11:20:53 +0530 Subject: [PATCH] minor cleanup --- .../composables/modal-vue-composables/src/Web3AuthProvider.ts | 3 --- .../no-modal-vue-composables/src/Web3AuthProvider.ts | 3 --- .../modal-react-hooks/src/context/Web3AuthInnerContext.ts | 3 --- .../no-modal-react-hooks/src/context/Web3AuthInnerContext.ts | 3 --- 4 files changed, 12 deletions(-) diff --git a/packages/composables/modal-vue-composables/src/Web3AuthProvider.ts b/packages/composables/modal-vue-composables/src/Web3AuthProvider.ts index 7b6fed300..b3e394e53 100644 --- a/packages/composables/modal-vue-composables/src/Web3AuthProvider.ts +++ b/packages/composables/modal-vue-composables/src/Web3AuthProvider.ts @@ -57,9 +57,6 @@ export const Web3AuthProvider = defineComponent({ if (!web3Auth.value) throw WalletInitializationError.notReady(); if (!isConnected.value) throw WalletLoginError.notConnectedError(); await web3Auth.value.manageMFA(loginParams); - const localUserInfo = await web3Auth.value.getUserInfo(); - userInfo.value = localUserInfo; - isMFAEnabled.value = localUserInfo.isMfaEnabled || false; }; const logout = async (logoutParams: { cleanup: boolean } = { cleanup: false }) => { diff --git a/packages/composables/no-modal-vue-composables/src/Web3AuthProvider.ts b/packages/composables/no-modal-vue-composables/src/Web3AuthProvider.ts index 38874f813..989d29feb 100644 --- a/packages/composables/no-modal-vue-composables/src/Web3AuthProvider.ts +++ b/packages/composables/no-modal-vue-composables/src/Web3AuthProvider.ts @@ -58,9 +58,6 @@ export const Web3AuthProvider = defineComponent({ if (!web3Auth.value) throw WalletInitializationError.notReady(); if (!isConnected.value) throw WalletLoginError.notConnectedError(); await web3Auth.value.manageMFA(loginParams); - const localUserInfo = await web3Auth.value.getUserInfo(); - userInfo.value = localUserInfo; - isMFAEnabled.value = localUserInfo.isMfaEnabled || false; }; const logout = async (logoutParams: { cleanup: boolean } = { cleanup: false }) => { diff --git a/packages/hooks/modal-react-hooks/src/context/Web3AuthInnerContext.ts b/packages/hooks/modal-react-hooks/src/context/Web3AuthInnerContext.ts index ada8e587b..4c54020b1 100644 --- a/packages/hooks/modal-react-hooks/src/context/Web3AuthInnerContext.ts +++ b/packages/hooks/modal-react-hooks/src/context/Web3AuthInnerContext.ts @@ -64,9 +64,6 @@ export function Web3AuthInnerProvider(params: PropsWithChildren