BackEndCode
public enum BackEndCode : String, Hashable, SelfIdentifiable
A value representing an error code from the back-end.
-
Indicates that there is already an identity with the same e-mail or phone number.
This code can be obtained when using
AuthenticationMethodInternal
.Declaration
Swift
case alreadyExistingIdentity = "EXISTING_IDENTITY"
-
Indicates that the required authentication provider is disabled.
This code can be obtained when using
AuthenticationService
.Declaration
Swift
case authenticationProviderDisabled = "PROVIDER_DISABLED"
-
Indicates that the authentication token must be fresher for the requested operation to complete. The user must re-authenticate before trying it again.
This code can be obtained when using
AuthenticationService
.Declaration
Swift
case authenticationTokenTooOld = "TOKEN_TOO_OLD"
-
Indicates that the identity is locked for a while since they have been too much log-in failure.
This code can be obtained when using
AuthenticationMethodInternal
.Declaration
Swift
case identityTemporarilyLocked = "IDENTITY_TEMPORARILY_LOCKED"
-
Indicates that the request to the authentication provider is invalid.
This code can be obtained when using an invalid mobile country code (MCC) with the
AuthenticationMethodOrangeMobileNetwork
.Declaration
Swift
case invalidAuthenticationProviderRequest = "INVALID_PROVIDER_REQUEST"
-
Indicates that the settings of the authentication method are invalid.
This code can be obtained when using
AuthenticationService
.Declaration
Swift
case invalidAuthenticationProviderSettings = "INVALID_PROVIDER_SETTINGS"
-
Indicates that the
state
parameter of the authentication request is invalid. This may indicate that the request was intercepted by some unwanted people.This code can be obtained when using
AuthenticationMethodOAuth2
.Declaration
Swift
case invalidAuthenticationState = "INVALID_STATE"
-
Indicates that the token used to authenticate is invalid. It may be bad-signed, expired or containing wrong information.
Declaration
Swift
case invalidAuthenticationToken = "INVALID_TOKEN"
-
Indicates that the credentials given to authenticates are invalid.
This code can be obtained when using
AuthenticationMethodInternal
.Declaration
Swift
case invalidCredentials = "INVALID_CREDENTIALS"
-
Indicates that the provided e-mail address is ill-formed.
Declaration
Swift
case invalidEMail = "INVALID_EMAIL"
-
Indicates that JSON data could not be processed by the back-end.
Declaration
Swift
case jsonParsing = "JSON_PARSING"
-
Indicates that the authentication request is missing some parameter.
This code can be obtained when using
AuthenticationMethodOAuth2
.Declaration
Swift
case missingAuthenticationParameter = "MISSING_PARAMETER"
-
Indicates that the sender is not configured on the back-end.
This code can be obtained when using
AuthenticationMethodInternal
.Declaration
Swift
case missingSenderConfiguration = "MISSING_CONFIG"
-
Indicates that the authentication request is missing credentials.
This code can be obtained when using
AuthenticationMethodInternal
.Declaration
Swift
case missingCredentials = "MISSING_EMAIL_OR_PASSWORD"
-
Indicates that an error occurred while using an
XMLHTTPRequest
object.Declaration
Swift
case networkError = "NETWORK_ERROR"
-
Indicates that another one-time password is already pending.
Declaration
Swift
case oneTimePasswordPending = "OTP_PENDING"
-
Indicates that the provided password is too weak.
This code can be obtained when using
AuthenticationMethodInternal
.Declaration
Swift
case passwordTooWeak = "TOO_WEAK_PASSWORD"
-
Indicates that the permission to access some data has been denied by security rules.
Declaration
Swift
case permissionDenied = "PERMISSION_DENIED"
-
Indicates that a server error occurred while using an
XMLHTTPRequest
object.Declaration
Swift
case serverError = "RESPONSE_PAYLOAD_ERROR"
-
Indicates that the current user is unauthenticated while it is required to be authenticated.
Declaration
Swift
case unauthenticated = "AUTH_MISSING"
-
Indicates that the authentication request was emitted from a non-approved web origin. The origin must be added in the console.
This code can be obtained when using
AuthenticationMethodOAuth2
.Declaration
Swift
case unauthorizedAuthenticationRequestOrigin = "UNAUTHORIZED_REQUEST_ORIGIN"
-
Indicates that the identity to add is attached to another account than the current one.
This code can be obtained when using the
AuthenticationService.Context.current
value.Declaration
Swift
case unexpectedAccount = "UNEXPECTED_ACCOUNT"
-
Indicates that an encryption algorithm was specified whereas it is not allowed.
Declaration
Swift
case unexpectedEncryptionAlgorithm = "unexpectedEncryptionOption"
-
Indicates than the given user account does not exist on the back-end for the application.
Declaration
Swift
case unknownAccount = "UNKNOWN_ACCOUNT"
-
Indicates that the application is unknown.
Declaration
Swift
case unknownApplication = "UNKNOWN_APPLICATION"
-
Indicates that the authentication provider is not supported.
This code can be obtained when using
AuthenticationMethodOAuth2
.Declaration
Swift
case unsupportedAuthenticationProvider = "UNSUPPORTED_PROVIDER"
-
Indicates that the sign-in mode is invalid for the authentication provider.
Declaration
Swift
case unsupportedSignInMode = "UNSUPPORTED_SIGNIN_MODE"
-
Indicates that the identity used to log in has not been verified.
This code can be obtained when using
AuthenticationMethodInternal
.Declaration
Swift
case unverifiedIdentity = "UNVERIFIED_IDENTITY"