UNPKG

869 BTypeScriptView Raw
1export declare enum AuthErrorStrings {
2 DEFAULT_MSG = "Authentication Error",
3 EMPTY_EMAIL = "Email cannot be empty",
4 EMPTY_PHONE = "Phone number cannot be empty",
5 EMPTY_USERNAME = "Username cannot be empty",
6 INVALID_USERNAME = "The username should either be a string or one of the sign in types",
7 EMPTY_PASSWORD = "Password cannot be empty",
8 EMPTY_CODE = "Confirmation code cannot be empty",
9 SIGN_UP_ERROR = "Error creating account",
10 NO_MFA = "No valid MFA method provided",
11 INVALID_MFA = "Invalid MFA type",
12 EMPTY_CHALLENGE = "Challenge response cannot be empty",
13 NO_USER_SESSION = "Failed to get the session because the user is empty",
14 NETWORK_ERROR = "Network Error",
15 DEVICE_CONFIG = "Device tracking has not been configured in this User Pool",
16 AUTOSIGNIN_ERROR = "Please use your credentials to sign in"
17}