@aws-amplify/auth
Version:
Auth category of aws-amplify
29 lines (25 loc) • 812 B
text/typescript
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
export 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;
}