Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Dec 12, 2024
1 parent adcc544 commit 9c3e769
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ export function Web3AuthInnerProvider(params: PropsWithChildren<Web3AuthProvider
if (!web3Auth) throw WalletInitializationError.notReady();
if (!isConnected) throw WalletLoginError.notConnectedError();
await web3Auth.manageMFA(loginParams);
const localUserInfo = await web3Auth.getUserInfo();
setUserInfo(localUserInfo);
setIsMFAEnabled(localUserInfo.isMfaEnabled || false);
},
[web3Auth, isConnected]
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@ export function Web3AuthInnerProvider(params: PropsWithChildren<Web3AuthProvider
if (!web3Auth) throw WalletInitializationError.notReady();
if (!isConnected) throw WalletLoginError.notConnectedError();
await web3Auth.manageMFA(loginParams);
const localUserInfo = await web3Auth.getUserInfo();
setUserInfo(localUserInfo);
setIsMFAEnabled(localUserInfo.isMfaEnabled || false);
},
[web3Auth, isConnected]
);
Expand Down

0 comments on commit 9c3e769

Please sign in to comment.