Web3Auth / web3auth-web

Simple infrastructure that enables Web3 wallets and applications to provide seamless user logins for both mainstream and Web3.0 users.
https://web3auth.io/docs
Other
419 stars 227 forks source link

PnP cannot hide social login options #1952

Closed AlbertFiat24 closed 7 hours ago

AlbertFiat24 commented 9 hours ago

In the latest version 9.0.0, when trying to hide the social buttons, it does not hide them in the PnP.

When adding the following code, in the PnP configuration, it does nothing, used to work with 8.X.X:

facebook: { name: "Facebook", showOnModal: false, }, reddit: { name: "Reddit", showOnModal: false, }, discord: { name: "Discord", showOnModal: false, }, twitch: { name: "Twitch", showOnModal: false, },

yashovardhan commented 7 hours ago

Hey @AlbertFiat24 thanks for reporting. This issue is fixed in v9.0.1

AlbertFiat24 commented 6 hours ago

@yashovardhan I can still see the issue in v9.0.1 in the PnP

yashovardhan commented 6 hours ago

Please clear your npm cache and try again. I just tried the following code:

       await web3auth.initModal({
          modalConfig: {
            [WALLET_ADAPTERS.AUTH]: {
              label: "auth",
              loginMethods: {
                facebook: { name: "Facebook", showOnModal: false, }, 
                reddit: { name: "Reddit", showOnModal: false, }, 
                discord: { name: "Discord", showOnModal: false, }, 
                twitch: { name: "Twitch", showOnModal: false, },
              }
            }
          }
        });