Skip to content

Commit 9c3e769

Browse files
minor cleanup
1 parent adcc544 commit 9c3e769

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

packages/composables/modal-vue-composables/src/Web3AuthProvider.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ export const Web3AuthProvider = defineComponent({
5757
if (!web3Auth.value) throw WalletInitializationError.notReady();
5858
if (!isConnected.value) throw WalletLoginError.notConnectedError();
5959
await web3Auth.value.manageMFA(loginParams);
60-
const localUserInfo = await web3Auth.value.getUserInfo();
61-
userInfo.value = localUserInfo;
62-
isMFAEnabled.value = localUserInfo.isMfaEnabled || false;
6360
};
6461

6562
const logout = async (logoutParams: { cleanup: boolean } = { cleanup: false }) => {

packages/composables/no-modal-vue-composables/src/Web3AuthProvider.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ export const Web3AuthProvider = defineComponent({
5858
if (!web3Auth.value) throw WalletInitializationError.notReady();
5959
if (!isConnected.value) throw WalletLoginError.notConnectedError();
6060
await web3Auth.value.manageMFA(loginParams);
61-
const localUserInfo = await web3Auth.value.getUserInfo();
62-
userInfo.value = localUserInfo;
63-
isMFAEnabled.value = localUserInfo.isMfaEnabled || false;
6461
};
6562

6663
const logout = async (logoutParams: { cleanup: boolean } = { cleanup: false }) => {

packages/hooks/modal-react-hooks/src/context/Web3AuthInnerContext.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ export function Web3AuthInnerProvider(params: PropsWithChildren<Web3AuthProvider
6464
if (!web3Auth) throw WalletInitializationError.notReady();
6565
if (!isConnected) throw WalletLoginError.notConnectedError();
6666
await web3Auth.manageMFA(loginParams);
67-
const localUserInfo = await web3Auth.getUserInfo();
68-
setUserInfo(localUserInfo);
69-
setIsMFAEnabled(localUserInfo.isMfaEnabled || false);
7067
},
7168
[web3Auth, isConnected]
7269
);

packages/hooks/no-modal-react-hooks/src/context/Web3AuthInnerContext.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,6 @@ export function Web3AuthInnerProvider(params: PropsWithChildren<Web3AuthProvider
167167
if (!web3Auth) throw WalletInitializationError.notReady();
168168
if (!isConnected) throw WalletLoginError.notConnectedError();
169169
await web3Auth.manageMFA(loginParams);
170-
const localUserInfo = await web3Auth.getUserInfo();
171-
setUserInfo(localUserInfo);
172-
setIsMFAEnabled(localUserInfo.isMfaEnabled || false);
173170
},
174171
[web3Auth, isConnected]
175172
);

0 commit comments

Comments
 (0)