aws-amplify-react
Version:
AWS Amplify is a JavaScript library for Frontend and mobile developers building cloud-enabled applications.
26 lines (25 loc) • 702 B
TypeScript
import * as React from 'react';
export interface IAuthStateWrapperProps {
amplifyConfig?: any;
authState?: string;
onStateChange?: any;
theme?: any;
}
export interface IAuthStateWrapperState {
authData?: any;
authState: string;
error?: any;
}
export declare class AuthStateWrapper extends React.Component<IAuthStateWrapperProps, IAuthStateWrapperState> {
constructor(props: any);
componentWillMount(): void;
componentDidMount(): void;
handleStateChange(state: any, data: any): void;
handleAuthEvent(state: any, event: any): void;
checkUser(): any;
render(): JSX.Element;
}
/**
* @deprecated use named import
*/
export default AuthStateWrapper;