authServerToClientCode top-level constant
Auth server to client enum error codes.
Implementation
@internal
const authServerToClientCode = {
// Feature being configured or used requires a billing account.
'BILLING_NOT_ENABLED': AuthClientErrorCode.billingNotEnabled,
// Claims payload is too large.
'CLAIMS_TOO_LARGE': AuthClientErrorCode.claimsTooLarge,
// Configuration being added already exists.
'CONFIGURATION_EXISTS': AuthClientErrorCode.configurationExists,
// Configuration not found.
'CONFIGURATION_NOT_FOUND': AuthClientErrorCode.configurationNotFound,
// Provided credential has insufficient permissions.
'INSUFFICIENT_PERMISSION': AuthClientErrorCode.insufficientPermission,
// Provided configuration has invalid fields.
'INVALID_CONFIG': AuthClientErrorCode.invalidConfig,
// Provided configuration identifier is invalid.
'INVALID_CONFIG_ID': AuthClientErrorCode.invalidProviderId,
// ActionCodeSettings missing continue URL.
'INVALID_CONTINUE_URI': AuthClientErrorCode.invalidContinueUri,
// Dynamic link domain in provided ActionCodeSettings is not authorized.
'INVALID_DYNAMIC_LINK_DOMAIN': AuthClientErrorCode.invalidDynamicLinkDomain,
// uploadAccount provides an email that already exists.
'DUPLICATE_EMAIL': AuthClientErrorCode.emailAlreadyExists,
// uploadAccount provides a localId that already exists.
'DUPLICATE_LOCAL_ID': AuthClientErrorCode.uidAlreadyExists,
// Request specified a multi-factor enrollment ID that already exists.
'DUPLICATE_MFA_ENROLLMENT_ID':
AuthClientErrorCode.secondFactorUidAlreadyExists,
// setAccountInfo email already exists.
'EMAIL_EXISTS': AuthClientErrorCode.emailAlreadyExists,
// /'accounts':sndOobCode for password reset when user is not AuthClientErrorCode.found.
'EMAIL_NOT_FOUND': AuthClientErrorCode.emailNotFound,
// Reserved claim name.
'FORBIDDEN_CLAIM': AuthClientErrorCode.forbiddenClaim,
// Invalid claims provided.
'INVALID_CLAIMS': AuthClientErrorCode.invalidClaims,
// Invalid session cookie duration.
'INVALID_DURATION': AuthClientErrorCode.invalidSessionCookieDuration,
// Invalid email provided.
'INVALID_EMAIL': AuthClientErrorCode.invalidEmail,
// Invalid new email provided.
'INVALID_NEW_EMAIL': AuthClientErrorCode.invalidNewEmail,
// Invalid tenant display name. This can be thrown on CreateTenant and UpdateTenant.
'INVALID_DISPLAY_NAME': AuthClientErrorCode.invalidDisplayName,
// Invalid ID token provided.
'INVALID_ID_TOKEN': AuthClientErrorCode.invalidIdToken,
// Invalid tenant/parent resource name.
'INVALID_NAME': AuthClientErrorCode.invalidName,
// OIDC configuration has an invalid OAuth client ID.
'INVALID_OAUTH_CLIENT_ID': AuthClientErrorCode.invalidOauthClientId,
// Invalid page token.
'INVALID_PAGE_SELECTION': AuthClientErrorCode.invalidPageToken,
// Invalid phone number.
'INVALID_PHONE_NUMBER': AuthClientErrorCode.invalidPhoneNumber,
// Invalid agent project. Either agent project doesn't exist or didn't enable multi-tenancy.
'INVALID_PROJECT_ID': AuthClientErrorCode.invalidProjectId,
// Invalid provider ID.
'INVALID_PROVIDER_ID': AuthClientErrorCode.invalidProviderId,
// Invalid testing phone number.
'INVALID_TESTING_PHONE_NUMBER': AuthClientErrorCode.invalidTestingPhoneNumber,
// Invalid tenant type.
'INVALID_TENANT_TYPE': AuthClientErrorCode.invalidTenantType,
// Missing Android package name.
'MISSING_ANDROID_PACKAGE_NAME': AuthClientErrorCode.missingAndroidPackageName,
// Missing configuration.
'MISSING_CONFIG': AuthClientErrorCode.missingConfig,
// Missing configuration identifier.
'MISSING_CONFIG_ID': AuthClientErrorCode.missingProviderId,
// Missing tenant display 'name': his can be thrown on CreateTenant and AuthClientErrorCode.updateTenant.
'MISSING_DISPLAY_NAME': AuthClientErrorCode.missingDisplayName,
// Email is required for the specified action. For example a multi-factor user requires
// a verified email.
'MISSING_EMAIL': AuthClientErrorCode.missingEmail,
// Missing iOS bundle ID.
'MISSING_IOS_BUNDLE_ID': AuthClientErrorCode.missingIosBundleId,
// Missing OIDC issuer.
'MISSING_ISSUER': AuthClientErrorCode.missingIssuer,
// No localId provided (deleteAccount missing localId).
'MISSING_LOCAL_ID': AuthClientErrorCode.missingUid,
// OIDC configuration is missing an OAuth client ID.
'MISSING_OAUTH_CLIENT_ID': AuthClientErrorCode.missingOauthClientId,
// Missing provider ID.
'MISSING_PROVIDER_ID': AuthClientErrorCode.missingProviderId,
// Missing SAML RP config.
'MISSING_SAML_RELYING_PARTY_CONFIG':
AuthClientErrorCode.missingSamlRelyingPartyConfig,
// Empty user list in uploadAccount.
'MISSING_USER_ACCOUNT': AuthClientErrorCode.missingUid,
// Password auth disabled in console.
'OPERATION_NOT_ALLOWED': AuthClientErrorCode.operationNotAllowed,
// Provided credential has insufficient permissions.
'PERMISSION_DENIED': AuthClientErrorCode.insufficientPermission,
// Phone number already exists.
'PHONE_NUMBER_EXISTS': AuthClientErrorCode.phoneNumberAlreadyExists,
// Project not found.
'PROJECT_NOT_FOUND': AuthClientErrorCode.projectNotFound,
// In multi-tenancy 'context': reject creation quota AuthClientErrorCode.exceed.
'QUOTA_EXCEEDED': AuthClientErrorCode.quotaExceeded,
// Currently only 5 second factors can be set on the same user.
'SECOND_FACTOR_LIMIT_EXCEEDED': AuthClientErrorCode.secondFactorLimitExceeded,
// Tenant not found.
'TENANT_NOT_FOUND': AuthClientErrorCode.tenantNotFound,
// Tenant ID mismatch.
'TENANT_ID_MISMATCH': AuthClientErrorCode.mismatchingTenantId,
// Token expired error.
'TOKEN_EXPIRED': AuthClientErrorCode.idTokenExpired,
// Continue URL provided in ActionCodeSettings has a domain that is not whitelisted.
'UNAUTHORIZED_DOMAIN': AuthClientErrorCode.unauthorizedDomain,
// A multi-factor user requires a supported first factor.
'UNSUPPORTED_FIRST_FACTOR': AuthClientErrorCode.unsupportedFirstFactor,
// The request specified an unsupported type of second factor.
'UNSUPPORTED_SECOND_FACTOR': AuthClientErrorCode.unsupportedSecondFactor,
// Operation is not supported in a multi-tenant context.
'UNSUPPORTED_TENANT_OPERATION':
AuthClientErrorCode.unsupportedTenantOperation,
// A verified email is required for the specified action. For example a multi-factor user
// requires a verified email.
'UNVERIFIED_EMAIL': AuthClientErrorCode.unverifiedEmail,
// User on which action is to be performed is not found.
'USER_NOT_FOUND': AuthClientErrorCode.userNotFound,
// User record is disabled.
'USER_DISABLED': AuthClientErrorCode.userDisabled,
// Password provided is too weak.
'WEAK_PASSWORD': AuthClientErrorCode.invalidPassword,
// Unrecognized reCAPTCHA action.
'INVALID_RECAPTCHA_ACTION': AuthClientErrorCode.invalidRecaptchaAction,
// Unrecognized reCAPTCHA enforcement state.
'INVALID_RECAPTCHA_ENFORCEMENT_STATE':
AuthClientErrorCode.invalidRecaptchaEnforcementState,
// reCAPTCHA is not enabled for account defender.
'RECAPTCHA_NOT_ENABLED': AuthClientErrorCode.recaptchaNotEnabled,
};