diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-24 09:06:27 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 09:06:27 -0600 |
commit | 9027882fb401df2a9df6a89facb2bdb94b8b731b (patch) | |
tree | dc60ca1a2cc1be0838229f06b588f56871f2b91e /src/state/index.ts | |
parent | 439305b57e0c20799d87baf92c067ec8e262ea13 (diff) | |
download | voidsky-9027882fb401df2a9df6a89facb2bdb94b8b731b.tar.zst |
Account switcher (#85)
* Update the account-create and signin views to use the design system. Also: - Add borderDark to the theme - Start to an account selector in the signin flow * Dark mode fixes in signin ui * Track multiple active accounts and provide account-switching UI * Add test tooling for an in-memory pds * Add complete integration tests for login and the account switcher
Diffstat (limited to 'src/state/index.ts')
-rw-r--r-- | src/state/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/index.ts b/src/state/index.ts index 5c8b50ef1..78fba2ecf 100644 --- a/src/state/index.ts +++ b/src/state/index.ts @@ -13,13 +13,13 @@ export const DEFAULT_SERVICE = PROD_SERVICE const ROOT_STATE_STORAGE_KEY = 'root' const STATE_FETCH_INTERVAL = 15e3 -export async function setupState() { +export async function setupState(serviceUri = DEFAULT_SERVICE) { let rootStore: RootStoreModel let data: any libapi.doPolyfill() - const api = AtpApi.service(DEFAULT_SERVICE) as SessionServiceClient + const api = AtpApi.service(serviceUri) as SessionServiceClient rootStore = new RootStoreModel(api) try { data = (await storage.load(ROOT_STATE_STORAGE_KEY)) || {} |