@nfid/identitykit
Version:
A React library for adding wallet connections to dApps.
28 lines (27 loc) • 1.35 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;
excludeExtensionSignersBy?: ({
name: string;
} | {
uuid: string;
})[];
}
export declare const Provider: ({ children, signerClientOptions, crypto, window, authType, realConnectDisabled, allowInternetIdentityPinAuthentication, discoverExtensionSigners, windowOpenerFeatures, excludeExtensionSignersBy, ...props }: ProviderProps) => import("react/jsx-runtime").JSX.Element;
export {};