UNPKG

@fakel/rest-admin

Version:

An application that makes it easier to work with your API

25 lines (24 loc) 705 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthStore = void 0; var mobx_1 = require("mobx"); var AuthStore = /** @class */ (function () { function AuthStore() { this.user = null; this.isAuth = false; mobx_1.makeObservable(this, { user: mobx_1.observable, isAuth: mobx_1.observable, setUser: mobx_1.action, setIsAuth: mobx_1.action, }); } AuthStore.prototype.setUser = function (user) { this.user = user; }; AuthStore.prototype.setIsAuth = function (isAuth) { this.isAuth = isAuth; }; return AuthStore; }()); exports.AuthStore = AuthStore;