Web3Auth / web3auth-wagmi-connector

Web3Auth connector for wagmi
25 stars 24 forks source link

Fix MFA and socialLoginConfig settings #10

Closed Siim closed 1 year ago

Siim commented 2 years ago

Description

The socialLoginConfig does not have any effect when the setting is specified. So with a setting mfaLevel: none the UI still asks to set up MFA after 3 logins which is a default behaviour.

  const { connect, status } = useConnect({
    connector: new Web3AuthConnector({
      options: {
        uiConfig: {
          theme: 'dark',
        },
        socialLoginConfig: {
          mfaLevel: 'none',  // <-- this did not apply
        },
        // ...
      }
    })
  })

How Has This Been Tested?

Built the code and cleaned node_modules cache. Retried over 3 times and MFA setting is working as expected after the change.