Skip to main content

Enumeration: AuthErrorTypes

Authentication error types that can be encountered during the authentication process. These error types provide specific information about what went wrong during authentication operations, allowing for appropriate error handling and user feedback.

Enumeration Members​

CodeMismatchException​

CodeMismatchException: "CodeMismatchException"

The provided verification code does not match the expected code or the auth state is invalid. This occurs during account verification or password reset when an incorrect code is supplied.


EmptyCode​

EmptyCode: "emptyCode"

The confirmation code field was left empty during account verification or password reset. This error occurs when a user needs to provide a verification code but submits an empty value.


EmptyPassword​

EmptyPassword: "emptyPassword"

The password field was left empty during sign-in or sign-up. This error occurs when a user attempts to authenticate without providing a password.


EmptyUsername​

EmptyUsername: "emptyUsername"

The username field was left empty during sign-in or sign-up. This error occurs when a user attempts to authenticate without providing a username.


InvalidUsername​

InvalidUsername: "invalidUsername"

The provided username is not a valid email address. Mimeeq requires usernames to be in valid email format.


NetworkError​

NetworkError: "networkError"

A general network error occurred during the authentication request. This typically indicates connectivity issues between the client and authentication service.


NoAccess​

NoAccess: "NoAccess"

The user doesn't have access to the current customer. This occurs when a user tries to access resources of a customer they're not associated with.


NotAuthorizedException​

NotAuthorizedException: "NotAuthorizedException"

The user is not authorized to perform the requested action. This occurs when credentials are invalid or the user doesn't have permission for the operation.


NoUserSession​

NoUserSession: "noUserSession"

Failed to get the user session because no user is currently authenticated. This occurs when attempting to access session data without an active logged-in user.


SignUpError​

SignUpError: "signUpError"

An error occurred during the account creation process. This could be due to various reasons such as duplicate account, invalid parameters, or service issues.


UserAlreadyAuthenticatedException​

UserAlreadyAuthenticatedException: "UserAlreadyAuthenticatedException"

The user tried to sign in while already being authenticated. This occurs when attempting a sign-in operation when there's already an active session.


UserLambdaValidationException​

UserLambdaValidationException: "UserLambdaValidationException"

A user validation exception was thrown by AWS Lambda during the authentication process. This typically indicates custom validation rules in Lambda failed for the user.


UserNotConfirmedException​

UserNotConfirmedException: "UserNotConfirmedException"

The user account has not been confirmed yet. This occurs when trying to sign in to an account that hasn't completed the verification process.


UserNotFoundException​

UserNotFoundException: "UserNotFoundException"

The specified user account was not found. This occurs when attempting to authenticate with a username that doesn't exist in the system.