Hey Team,
I am not able to disable phone in pnp modal. I have tried solutions in other forums but it seems not working for us.
Following is the code we are using
Web3 config
const web3auth = new Web3Auth({
clientId,
uiConfig: {
appName: 'Avatar.One',
mode: 'dark',
loginMethodsOrder: ['google', 'apple', 'twitter', 'discord'],
logoLight: '/images/logo-black.png',
logoDark: '/images/logo-all-white.png',
defaultLanguage: 'en', // en, de, ja, ko, zh, es, fr, pt, nl
loginGridCol: 3,
primaryButton: 'externalLogin', // "externalLogin" | "socialLogin" | "emailLogin"
uxMode: 'redirect',
},
web3AuthNetwork: WEB3AUTH_NETWORK[import.meta.env.VITE_APP_WEB3_AUTH_VERIFIER],
privateKeyProvider: solanaPrivateKeyPrvoider,
});
Modal Config
await web3auth.initModal(
{
modalConfig: {
[WALLET_ADAPTERS.OPENLOGIN]: {
label: "openlogin",
loginMethods: {
email_passwordless: {
name: "email_passwordless",
showOnModal: true,
},
sms_passwordless: {
name: "sms_passwordless",
showOnModal: false
},
},
},
},
}
);