feat: get fsm to a working testing state

This commit is contained in:
Paul Makles
2022-06-28 13:49:50 +01:00
parent 80f4bb3d98
commit ce88fab714
6 changed files with 63 additions and 16 deletions

View File

@@ -2,6 +2,7 @@ import { action, computed, makeAutoObservable, ObservableMap } from "mobx";
import { mapToRecord } from "../../lib/conversion";
import { clientController } from "../../controllers/client/ClientController";
import Persistent from "../interfaces/Persistent";
import Store from "../interfaces/Store";
@@ -110,7 +111,8 @@ export default class Auth implements Store, Persistent<Data> {
* Check whether we are currently logged in.
* @returns Whether we are logged in
*/
/*@computed isLoggedIn() {
return this.current !== null;
}*/
@computed isLoggedIn() {
// ! FIXME: temp proxy info
return clientController.getActiveSession()?.ready;
}
}