1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-05-02 16:16:41 +07:00

fixed user hydration

This commit is contained in:
Fedor Katurov 2022-11-22 10:46:41 +06:00
parent ed9694c246
commit 75dc20ca0b
13 changed files with 194 additions and 95 deletions
src/store/auth

View file

@ -9,6 +9,7 @@ export class AuthStore {
token: string = '';
user: IUser = EMPTY_USER;
isTesterInternal: boolean = false;
fetched = false;
constructor() {
makeAutoObservable(this);
@ -46,4 +47,8 @@ export class AuthStore {
this.token = '';
this.setUser(EMPTY_USER);
};
setFetched = (fetched: boolean) => {
this.fetched = fetched;
};
}