@aws-amplify/auth
Version:
Auth category of aws-amplify
22 lines (21 loc) • 404 B
TypeScript
type AutoSignInAction = {
type: 'START';
} | {
type: 'SET_USERNAME';
value: string;
} | {
type: 'SET_SESSION';
value?: string;
} | {
type: 'RESET';
};
interface AutoSignInState {
active: boolean;
username?: string;
session?: string;
}
export declare const autoSignInStore: {
getState(): AutoSignInState;
dispatch(action: AutoSignInAction): void;
};
export {};