UNPKG

@authsignal/react

Version:

React components for [Authsignal](https://authsignal.com).

18 lines 758 B
import { Authsignal } from "@authsignal/browser"; import React from "react"; import { ChallengeOptions, TVerificationMethod } from "../../types"; type ChallengeState = { isDesktop: boolean; verificationMethod?: TVerificationMethod; verificationMethods?: ChallengeOptions["verificationMethods"]; user?: ChallengeOptions["user"]; setVerificationMethod: React.Dispatch<React.SetStateAction<TVerificationMethod | undefined>>; handleChallengeSuccess: (params: { token: string; }) => void; authsignal: Authsignal; }; export declare const ChallengeContext: React.Context<ChallengeState | undefined>; export declare function useChallengeContext(): ChallengeState; export {}; //# sourceMappingURL=use-challenge-context.d.ts.map