Custom Login Method

RabbyKit provides options for customizing login methods, allowing you to set icons, text, and define the behavior upon clicking. This enables you to incorporate special login methods such as email login, which may be required by some DApps.

app.ts
export const rabbyKit = createModal({
  ...
  customButtons: [
    {
      name: "your login method",
      logo: "https://debank.com/192.png",
      onClick: () => {
        rabbyKit.close();
        //your login method
      },
    },
  ],
});
 
//or
rabbyKit.setCustomButtons([
  {
    name: "Login with verified email",
    logo: IconEmailLogin,
    onClick: () => {
      rabbyKit.close();
      //your login method
    },
  },
]);

whether to use WalletConnect

app.ts
...
export const rabbyKit = createModal({
    ...
  showWalletConnect: false,
});
...