UNPKG

@dynamic-labs/sdk-react-core

Version:

A React SDK for implementing wallet web3 authentication and authorization to your website.

24 lines (23 loc) 1.01 kB
import { ReactNode, SetStateAction, Dispatch } from 'react'; import { UserPasskey } from '@dynamic-labs/sdk-api-core'; type PasskeyContextProps = { passkey: UserPasskey | undefined; setPasskey: Dispatch<SetStateAction<UserPasskey | undefined>>; passkeyEdited: boolean; setPasskeyEdited: Dispatch<SetStateAction<boolean>>; passkeyIcon: JSX.Element | undefined; setPasskeyIcon: Dispatch<SetStateAction<JSX.Element | undefined>>; userPasskeys: UserPasskey[]; userPasskeysLoading: boolean; userHasPasskeysForCurrentOrigin: boolean; userNeedsCrossDomainPasskey: boolean; showAlert: () => boolean; showSecureAccountBanner: boolean; setShowSecureAccountBanner: (value: boolean) => void; }; export declare const PasskeyContext: import("react").Context<PasskeyContextProps | undefined>; export declare const PasskeyContextProvider: ({ children, }: { children: ReactNode; }) => JSX.Element; export declare const usePasskeyContext: () => PasskeyContextProps; export {};