@nfid/identitykit
Version:
A React library for adding wallet connections to dApps.
23 lines (22 loc) • 1.23 kB
TypeScript
import { PropsWithChildren } from "react";
import { IdentityKitAuthType, IdentityKitDelegationSignerClientOptions } from "../../../../lib";
import { SignerConfig } from "../../../../lib/types";
import { IdentityKitTheme } from "../../constants";
interface ProviderProps extends PropsWithChildren {
authType?: IdentityKitAuthType | Record<string, IdentityKitAuthType>;
signers?: SignerConfig[];
featuredSigner?: SignerConfig | false;
discoverExtensionSigners?: boolean;
theme?: IdentityKitTheme;
signerClientOptions?: Omit<IdentityKitDelegationSignerClientOptions, "signer" | "crypto" | "agent">;
onConnectFailure?: (e: Error) => unknown;
onConnectSuccess?: () => unknown;
onDisconnect?: () => unknown;
realConnectDisabled?: boolean;
crypto?: Pick<Crypto, "getRandomValues" | "randomUUID">;
window?: Window;
allowInternetIdentityPinAuthentication?: boolean;
windowOpenerFeatures?: string;
}
export declare const Provider: ({ children, signerClientOptions, crypto, window, authType, realConnectDisabled, allowInternetIdentityPinAuthentication, discoverExtensionSigners, windowOpenerFeatures, ...props }: ProviderProps) => import("react/jsx-runtime").JSX.Element;
export {};