Hiding Login Methods

I am trying to hide all login methods other than email and google in the plug and play modal. Is this possible? I can't seem to find a setting that works so far, please advise.

Originally posted by: marboro92

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

While initializing the modal, you can showcase which login methods should show up by passing modalConfig as shown below.

await web3auth.initModal({
  modalConfig: {
      label: "openlogin",
      loginMethods: {
        google: {
          name: "google login",
          logoDark: "url to your custom logo which will shown in dark mode",
        facebook: {
          // it will hide the facebook option from the Web3Auth modal.
          showOnModal: false,
      // setting it to false will hide all social login methods from modal.
      showOnModal: true,

More details regarding customising the UI according to your needs can be found here.

Originally posted by: Saviour1001