synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
29 lines • 1.35 kB
TypeScript
import { OAuth2State } from '@/utils';
import { UseLoginReturn } from '@/utils/hooks';
import { TwoFactorAuthErrorResponse } from '@sage-bionetworks/synapse-types';
import { Realm } from '@sage-bionetworks/synapse-client';
type Props = {
ssoRedirectUrl?: string;
registerAccountUrl?: string;
resetPasswordUrl?: string;
onBeginOAuthSignIn?: () => void;
step: UseLoginReturn['step'];
onStepChange: (step: UseLoginReturn['step']) => void;
twoFactorAuthenticationRequired?: TwoFactorAuthErrorResponse;
submitUsernameAndPassword: UseLoginReturn['submitUsernameAndPassword'];
submitOneTimePassword: UseLoginReturn['submitOneTimePassword'];
errorMessage: UseLoginReturn['errorMessage'];
loginIsPending: UseLoginReturn['loginIsPending'];
beginTwoFactorAuthReset: UseLoginReturn['beginTwoFactorAuthReset'];
twoFactorAuthResetIsSuccess: UseLoginReturn['twoFactorAuthResetIsSuccess'];
twoFactorAuthResetIsPending: UseLoginReturn['twoFactorAuthResetIsPending'];
hideRegisterButton?: boolean;
hideForgotPasswordButton?: boolean;
ssoState?: OAuth2State;
twoFactorAuthResetUri?: string;
onPasswordLoginSelected?: () => void;
realm?: Realm;
};
export default function LoginForm(props: Props): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=LoginForm.d.ts.map