Docs

ModalConfigOptions

type ModalConfigOptions = {
  auth?: {
    loginOptional?: boolean;
    onLogin?: (token: string) => void;
    onLogout?: () => void;
  };
  modalSize: "wide" | "compact";
  onConnect?: () => void;
  privacyPolicyUrl?: string;
  termsOfServiceUrl?: string;
  theme?: "light" | "dark" | Theme;
  title?: string;
  titleIconUrl?: string;
  welcomeScreen?: WelcomeScreen;
};