diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-06-14 14:29:47 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-06-14 14:29:47 -0500 |
commit | cef133031e501f8f73c66a379de38b1041287743 (patch) | |
tree | b628150cbee4facbcbfc06599baaf4c108949995 /src/state/env.ts | |
parent | 09b78a46343088a2790dab067bd4fd8384957311 (diff) | |
download | voidsky-cef133031e501f8f73c66a379de38b1041287743.tar.zst |
Add base auth & ucan request flow (web only)
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() + } } /** |