@aws-amplify/auth
Version:
Auth category of aws-amplify
24 lines (23 loc) • 761 B
TypeScript
export declare enum AuthErrorTypes {
NoConfig = "noConfig",
MissingAuthConfig = "missingAuthConfig",
EmptyUsername = "emptyUsername",
InvalidUsername = "invalidUsername",
EmptyPassword = "emptyPassword",
EmptyCode = "emptyCode",
SignUpError = "signUpError",
NoMFA = "noMFA",
InvalidMFA = "invalidMFA",
EmptyChallengeResponse = "emptyChallengeResponse",
NoUserSession = "noUserSession",
Default = "default",
DeviceConfig = "deviceConfig",
NetworkError = "networkError",
AutoSignInError = "autoSignInError",
OAuthSignInError = "oauthSignInError"
}
export type AuthErrorMessages = Record<AuthErrorTypes, AuthErrorMessage>;
export interface AuthErrorMessage {
message: string;
log?: string;
}