@smartface/plugin-firebase
Version:
Smartface Firebase Plugin for Smartface Native Framework
89 lines • 3.54 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var AuthErrors;
(function (AuthErrors) {
/**
* Indicates the administrator disabled sign in with the specified identity provider.
*/
AuthErrors[AuthErrors["OperationNotAllowed"] = 17006] = "OperationNotAllowed";
/**
* Indicates the user's account is disabled on the server.
*/
AuthErrors[AuthErrors["UserDisabled"] = 17005] = "UserDisabled";
/**
* Indicates the user attempted sign in with a wrong password.
*/
AuthErrors[AuthErrors["WrongPassword"] = 17009] = "WrongPassword";
/**
* Indicates the email is invalid.
*/
AuthErrors[AuthErrors["InvalidEmail"] = 17008] = "InvalidEmail";
/**
* Indicates the email used to attempt a sign up is already in use.
*/
AuthErrors[AuthErrors["EmailAlreadyInUse"] = 17007] = "EmailAlreadyInUse";
/**
* Indicates an attempt to set a password that is considered too weak.
*/
AuthErrors[AuthErrors["WeakPassword"] = 17026] = "WeakPassword";
/**
* Indicates a validation error with the custom token.
*/
AuthErrors[AuthErrors["InvalidCustomToken"] = 17000] = "InvalidCustomToken";
/**
* Indicates the service account and the API key belong to different projects.
*/
AuthErrors[AuthErrors["CustomTokenMismatch"] = 17002] = "CustomTokenMismatch";
/**
* Indicates the IDP token or requestUri is invalid.
*/
AuthErrors[AuthErrors["InvalidCredential"] = 17004] = "InvalidCredential";
/**
* Indicates that an attempt was made to reauthenticate with a user which is not the current
* user.
*/
AuthErrors[AuthErrors["UserMismatch"] = 17024] = "UserMismatch";
/**
* Indicates the user has attemped to change email or password more than 5 minutes after
* signing in.
*/
AuthErrors[AuthErrors["RequiresRecentLogin"] = 17014] = "RequiresRecentLogin";
/**
* Indicates that there are invalid parameters in the payload during a "send password reset
* email" attempt.
*/
AuthErrors[AuthErrors["InvalidMessagePayload"] = 17031] = "InvalidMessagePayload";
/**
* Indicates that the sender email is invalid during a "send password reset email" attempt.
*/
AuthErrors[AuthErrors["InvalidSender"] = 17032] = "InvalidSender";
/**
* Indicates that the recipient email is invalid.
*/
AuthErrors[AuthErrors["InvalidRecipientEmail"] = 17033] = "InvalidRecipientEmail";
/**
* Indicates the user account was not found.
*/
AuthErrors[AuthErrors["UserNotFound"] = 17011] = "UserNotFound";
/**
* Indicates the saved token has expired, for example, the user may have changed account
* password on another device. The user needs to sign in again on the device that made this
* request.
*/
AuthErrors[AuthErrors["UserTokenExpired"] = 17021] = "UserTokenExpired";
/**
* Indicates user's saved auth credential is invalid, the user needs to sign in again.
*/
AuthErrors[AuthErrors["InvalidUserToken"] = 17017] = "InvalidUserToken";
/**
* Indicates the OOB code is expired.
*/
AuthErrors[AuthErrors["ExpiredActionCode"] = 17029] = "ExpiredActionCode";
/**
* Indicates the OOB code is invalid.
*/
AuthErrors[AuthErrors["InvalidActionCode"] = 17030] = "InvalidActionCode";
})(AuthErrors || (AuthErrors = {}));
exports.default = AuthErrors;
module.exports = AuthErrors;
//# sourceMappingURL=authErrors.js.map