mongodb-stitch
Version:
[](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
33 lines • 2.23 kB
JavaScript
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var _a;
var StitchClientErrorCode;
(function (StitchClientErrorCode) {
StitchClientErrorCode[StitchClientErrorCode["LoggedOutDuringRequest"] = 0] = "LoggedOutDuringRequest";
StitchClientErrorCode[StitchClientErrorCode["MustAuthenticateFirst"] = 1] = "MustAuthenticateFirst";
StitchClientErrorCode[StitchClientErrorCode["UserNoLongerValid"] = 2] = "UserNoLongerValid";
StitchClientErrorCode[StitchClientErrorCode["CouldNotLoadPersistedAuthInfo"] = 3] = "CouldNotLoadPersistedAuthInfo";
StitchClientErrorCode[StitchClientErrorCode["CouldNotPersistAuthInfo"] = 4] = "CouldNotPersistAuthInfo";
StitchClientErrorCode[StitchClientErrorCode["StreamingNotSupported"] = 5] = "StreamingNotSupported";
StitchClientErrorCode[StitchClientErrorCode["StreamClosed"] = 6] = "StreamClosed";
})(StitchClientErrorCode = exports.StitchClientErrorCode || (exports.StitchClientErrorCode = {}));
exports.clientErrorCodeDescs = (_a = {},
_a[StitchClientErrorCode.LoggedOutDuringRequest] = "logged out while making a request to Stitch",
_a[StitchClientErrorCode.MustAuthenticateFirst] = "method called requires being authenticated",
_a[StitchClientErrorCode.UserNoLongerValid] = "user instance being accessed is no longer valid; please get a new user with auth.getUser()",
_a[StitchClientErrorCode.CouldNotLoadPersistedAuthInfo] = "failed to load stored auth information for Stitch",
_a[StitchClientErrorCode.CouldNotPersistAuthInfo] = "failed to save auth information for Stitch",
_a[StitchClientErrorCode.StreamingNotSupported] = "streaming not supported in this SDK",
_a[StitchClientErrorCode.StreamClosed] = "stream is closed",
_a);
});
//# sourceMappingURL=StitchClientErrorCode.js.map