@slashid/react
Version:
React SDK for the /id platform
21 lines • 855 B
TypeScript
import type { Factor } from "@slashid/slashid";
import type { FormProps } from "../form";
import { TextConfig } from "../text/constants";
export type StepConfig = {
factors: Factor[];
text?: Partial<TextConfig>;
};
type MultiFactorAuthProps = {
steps: StepConfig[];
className?: string;
onSuccess?: FormProps["onSuccess"];
};
/**
* First-class Multi-Factor Authentication experience.
* This component can be used instead of regular `<Form />`.
* After successful authentication with one of the factors defined in a `<ConfigurationProvider>`,
* the user will _immediately_ be prompted with second step - one of the `factors`.
*/
export declare function MultiFactorAuth({ steps, className, onSuccess, }: MultiFactorAuthProps): import("react/jsx-runtime").JSX.Element | null;
export {};
//# sourceMappingURL=multi-factor-auth.d.ts.map