diff options
Diffstat (limited to 'src/state/env.ts')
-rw-r--r-- | src/state/env.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/state/env.ts b/src/state/env.ts index 59c0554a2..f47a7037f 100644 --- a/src/state/env.ts +++ b/src/state/env.ts @@ -4,14 +4,18 @@ */ import {getEnv, IStateTreeNode} from 'mobx-state-tree' +import * as auth from '@adxp/auth' import {API} from '../api' export class Environment { api = new API() + authStore?: auth.BrowserStore constructor() {} - async setup() {} + async setup() { + this.authStore = await auth.BrowserStore.load() + } } /** |