@slashid/react
Version:
React SDK for the /id platform
35 lines • 1.55 kB
TypeScript
import { CreateFlowOptions } from "../flow/flow.common";
import { Authenticating } from "../authenticating";
import { ConfigurationOverridesProps } from "../../configuration-overrides";
import { LoginOptions } from "../../../domain/types";
import { Slots } from "../../slot";
export type Props = ConfigurationOverridesProps & {
oid: string;
className?: string;
onSuccess?: CreateFlowOptions["onSuccess"];
onError?: CreateFlowOptions["onError"];
middleware?: LoginOptions["middleware"];
children?: Slots<"authenticating" | "success" | "error" | "footer">;
};
/**
* Render a form that can be used to complete the challenges for organization switching .
* The form can be customized significantly using the built-in slots and CSS custom properties.
* Check the documentation for more information.
*/
export declare const OrgSwitchingForm: {
({ oid, className, onSuccess, onError, factors, text, children, }: Props): import("react/jsx-runtime").JSX.Element;
Error: {
({ children }: {
children?: import("react").ReactNode | (({ context }: {
context: import("../flow/flow.common").AuthnContext & {
error: Error;
};
retry: import("../../../domain/types").Retry;
cancel: () => void;
}) => import("react").ReactNode);
}): import("react/jsx-runtime").JSX.Element | null;
displayName: string;
};
Authenticating: typeof Authenticating;
};
//# sourceMappingURL=org-switching-form.d.ts.map