File tree Expand file tree Collapse file tree 4 files changed +0
-12
lines changed
modal-vue-composables/src
no-modal-vue-composables/src
modal-react-hooks/src/context
no-modal-react-hooks/src/context Expand file tree Collapse file tree 4 files changed +0
-12
lines changed Original file line number Diff line number Diff 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 } ) => {
Original file line number Diff line number Diff 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 } ) => {
Original file line number Diff line number Diff 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 ) ;
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments