Skip to content

Commit

Permalink
Remove AuthErrorCode from core export (#4013)
Browse files Browse the repository at this point in the history
* Remove AuthErrorCode from core export

* Api
  • Loading branch information
sam-gc authored Oct 29, 2020
1 parent 0c602aa commit 7e3846b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 192 deletions.
190 changes: 0 additions & 190 deletions common/api-review/auth-exp.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,196 +61,6 @@ export class AuthCredential {
toJSON(): object;
}

// @public
export const enum AuthErrorCode {
// (undocumented)
ADMIN_ONLY_OPERATION = "admin-restricted-operation",
// (undocumented)
APP_NOT_AUTHORIZED = "app-not-authorized",
// (undocumented)
APP_NOT_INSTALLED = "app-not-installed",
// (undocumented)
ARGUMENT_ERROR = "argument-error",
// (undocumented)
CAPTCHA_CHECK_FAILED = "captcha-check-failed",
// (undocumented)
CODE_EXPIRED = "code-expired",
// (undocumented)
CORDOVA_NOT_READY = "cordova-not-ready",
// (undocumented)
CORS_UNSUPPORTED = "cors-unsupported",
// (undocumented)
CREDENTIAL_ALREADY_IN_USE = "credential-already-in-use",
// (undocumented)
CREDENTIAL_MISMATCH = "custom-token-mismatch",
// (undocumented)
CREDENTIAL_TOO_OLD_LOGIN_AGAIN = "requires-recent-login",
// (undocumented)
DYNAMIC_LINK_NOT_ACTIVATED = "dynamic-link-not-activated",
// (undocumented)
EMAIL_CHANGE_NEEDS_VERIFICATION = "email-change-needs-verification",
// (undocumented)
EMAIL_EXISTS = "email-already-in-use",
// (undocumented)
EMULATOR_CONFIG_FAILED = "emulator-config-failed",
// (undocumented)
EXPIRED_OOB_CODE = "expired-action-code",
// (undocumented)
EXPIRED_POPUP_REQUEST = "cancelled-popup-request",
// (undocumented)
INTERNAL_ERROR = "internal-error",
// (undocumented)
INVALID_API_KEY = "invalid-api-key",
// (undocumented)
INVALID_APP_CREDENTIAL = "invalid-app-credential",
// (undocumented)
INVALID_APP_ID = "invalid-app-id",
// (undocumented)
INVALID_AUTH = "invalid-user-token",
// (undocumented)
INVALID_AUTH_EVENT = "invalid-auth-event",
// (undocumented)
INVALID_CERT_HASH = "invalid-cert-hash",
// (undocumented)
INVALID_CODE = "invalid-verification-code",
// (undocumented)
INVALID_CONTINUE_URI = "invalid-continue-uri",
// (undocumented)
INVALID_CORDOVA_CONFIGURATION = "invalid-cordova-configuration",
// (undocumented)
INVALID_CUSTOM_TOKEN = "invalid-custom-token",
// (undocumented)
INVALID_DYNAMIC_LINK_DOMAIN = "invalid-dynamic-link-domain",
// (undocumented)
INVALID_EMAIL = "invalid-email",
// (undocumented)
INVALID_EMULATOR_SCHEME = "invalid-emulator-scheme",
// (undocumented)
INVALID_IDP_RESPONSE = "invalid-credential",
// (undocumented)
INVALID_MESSAGE_PAYLOAD = "invalid-message-payload",
// (undocumented)
INVALID_MFA_SESSION = "invalid-multi-factor-session",
// (undocumented)
INVALID_OAUTH_CLIENT_ID = "invalid-oauth-client-id",
// (undocumented)
INVALID_OAUTH_PROVIDER = "invalid-oauth-provider",
// (undocumented)
INVALID_OOB_CODE = "invalid-action-code",
// (undocumented)
INVALID_ORIGIN = "unauthorized-domain",
// (undocumented)
INVALID_PASSWORD = "wrong-password",
// (undocumented)
INVALID_PERSISTENCE = "invalid-persistence-type",
// (undocumented)
INVALID_PHONE_NUMBER = "invalid-phone-number",
// (undocumented)
INVALID_PROVIDER_ID = "invalid-provider-id",
// (undocumented)
INVALID_RECIPIENT_EMAIL = "invalid-recipient-email",
// (undocumented)
INVALID_SENDER = "invalid-sender",
// (undocumented)
INVALID_SESSION_INFO = "invalid-verification-id",
// (undocumented)
INVALID_TENANT_ID = "invalid-tenant-id",
// (undocumented)
MFA_INFO_NOT_FOUND = "multi-factor-info-not-found",
// (undocumented)
MFA_REQUIRED = "multi-factor-auth-required",
// (undocumented)
MISSING_ANDROID_PACKAGE_NAME = "missing-android-pkg-name",
// (undocumented)
MISSING_APP_CREDENTIAL = "missing-app-credential",
// (undocumented)
MISSING_AUTH_DOMAIN = "auth-domain-config-required",
// (undocumented)
MISSING_CODE = "missing-verification-code",
// (undocumented)
MISSING_CONTINUE_URI = "missing-continue-uri",
// (undocumented)
MISSING_IFRAME_START = "missing-iframe-start",
// (undocumented)
MISSING_IOS_BUNDLE_ID = "missing-ios-bundle-id",
// (undocumented)
MISSING_MFA_INFO = "missing-multi-factor-info",
// (undocumented)
MISSING_MFA_SESSION = "missing-multi-factor-session",
// (undocumented)
MISSING_OR_INVALID_NONCE = "missing-or-invalid-nonce",
// (undocumented)
MISSING_PHONE_NUMBER = "missing-phone-number",
// (undocumented)
MISSING_SESSION_INFO = "missing-verification-id",
// (undocumented)
MODULE_DESTROYED = "app-deleted",
// (undocumented)
NEED_CONFIRMATION = "account-exists-with-different-credential",
// (undocumented)
NETWORK_REQUEST_FAILED = "network-request-failed",
// (undocumented)
NO_AUTH_EVENT = "no-auth-event",
// (undocumented)
NO_SUCH_PROVIDER = "no-such-provider",
// (undocumented)
NULL_USER = "null-user",
// (undocumented)
OPERATION_NOT_ALLOWED = "operation-not-allowed",
// (undocumented)
OPERATION_NOT_SUPPORTED = "operation-not-supported-in-this-environment",
// (undocumented)
POPUP_BLOCKED = "popup-blocked",
// (undocumented)
POPUP_CLOSED_BY_USER = "popup-closed-by-user",
// (undocumented)
PROVIDER_ALREADY_LINKED = "provider-already-linked",
// (undocumented)
QUOTA_EXCEEDED = "quota-exceeded",
// (undocumented)
REDIRECT_CANCELLED_BY_USER = "redirect-cancelled-by-user",
// (undocumented)
REDIRECT_OPERATION_PENDING = "redirect-operation-pending",
// (undocumented)
REJECTED_CREDENTIAL = "rejected-credential",
// (undocumented)
SECOND_FACTOR_ALREADY_ENROLLED = "second-factor-already-in-use",
// (undocumented)
SECOND_FACTOR_LIMIT_EXCEEDED = "maximum-second-factor-count-exceeded",
// (undocumented)
TENANT_ID_MISMATCH = "tenant-id-mismatch",
// (undocumented)
TIMEOUT = "timeout",
// (undocumented)
TOKEN_EXPIRED = "user-token-expired",
// (undocumented)
TOO_MANY_ATTEMPTS_TRY_LATER = "too-many-requests",
// (undocumented)
UNAUTHORIZED_DOMAIN = "unauthorized-continue-uri",
// (undocumented)
UNSUPPORTED_FIRST_FACTOR = "unsupported-first-factor",
// (undocumented)
UNSUPPORTED_PERSISTENCE = "unsupported-persistence-type",
// (undocumented)
UNSUPPORTED_TENANT_OPERATION = "unsupported-tenant-operation",
// (undocumented)
UNVERIFIED_EMAIL = "unverified-email",
// (undocumented)
USER_CANCELLED = "user-cancelled",
// (undocumented)
USER_DELETED = "user-not-found",
// (undocumented)
USER_DISABLED = "user-disabled",
// (undocumented)
USER_MISMATCH = "user-mismatch",
// (undocumented)
USER_SIGNED_OUT = "user-signed-out",
// (undocumented)
WEAK_PASSWORD = "weak-password",
// (undocumented)
WEB_STORAGE_UNSUPPORTED = "web-storage-unsupported"
}

// @public
export const browserLocalPersistence: externs.Persistence;

Expand Down
2 changes: 0 additions & 2 deletions packages-exp/auth-exp/src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
import * as externs from '@firebase/auth-types-exp';
import { CompleteFn, ErrorFn, Unsubscribe } from '@firebase/util';

export { AuthErrorCode } from './errors';

// Non-optional auth methods.
/**
* Changes the type of persistence on the Auth instance for the currently saved
Expand Down

0 comments on commit 7e3846b

Please sign in to comment.