aws-amplify-react
Version:
AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.
26 lines (25 loc) • 764 B
TypeScript
import * as React from 'react';
export interface ITOTPSetupCompProps {
authData?: any;
onTOTPEvent?: (event: any, data: any, user: any) => void;
theme?: any;
}
export interface ITOTPSetupCompState {
code: string | null;
setupMessage: string | null;
}
export declare class TOTPSetupComp extends React.Component<ITOTPSetupCompProps, ITOTPSetupCompState> {
inputs: any;
constructor(props: any);
componentDidMount(): void;
triggerTOTPEvent(event: any, data: any, user: any): void;
handleInputChange(evt: any): void;
setup(): void;
verifyTotpToken(): Promise<void>;
showSecretCode(code: any, theme: any): JSX.Element;
render(): JSX.Element;
}
/**
* @deprecated use named import
*/
export default TOTPSetupComp;