UNPKG

@fakel/rest-admin

Version:

An application that makes it easier to work with your API

22 lines (21 loc) 585 B
import { action, makeObservable, observable } from 'mobx'; var AuthStore = /** @class */ (function () { function AuthStore() { this.user = null; this.isAuth = false; makeObservable(this, { user: observable, isAuth: observable, setUser: action, setIsAuth: action, }); } AuthStore.prototype.setUser = function (user) { this.user = user; }; AuthStore.prototype.setIsAuth = function (isAuth) { this.isAuth = isAuth; }; return AuthStore; }()); export { AuthStore };