[Archive] Can I disable phone number auth in default openlogin modal?

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by githubdiscussions on 2/5/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.


Please help me how I can do this.
Thanks



Originally posted by: antmanstar

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1284

Yes, you can disable phone auth by setting up loginConfig options.

For example:-

new Openlogin({
    loginConfig: {
        sms_passwordless: {
            showOnModal: false,
            showOnDesktop: false,
            showOnMobile: false,
        }
    }
})


Originally posted by: arch1995