mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
removed all router-modals
This commit is contained in:
parent
85d20e5009
commit
ffce400398
15 changed files with 99 additions and 143 deletions
|
@ -6,14 +6,14 @@ import { makePersistable, isHydrated } from 'mobx-persist-store';
|
|||
export class AuthStore {
|
||||
token: string = '';
|
||||
user: IUser = EMPTY_USER;
|
||||
private isTesterInternal: boolean = false;
|
||||
isTesterInternal: boolean = false;
|
||||
|
||||
constructor() {
|
||||
makeAutoObservable(this);
|
||||
|
||||
void makePersistable(this, {
|
||||
name: `vault48_auth_${process.env.REACT_APP_API_URL}`,
|
||||
properties: ['token', 'user'],
|
||||
properties: ['token', 'user', 'isTesterInternal'],
|
||||
storage: window.localStorage,
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue