diff options
Diffstat (limited to 'src/state/session/index.tsx')
-rw-r--r-- | src/state/session/index.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/state/session/index.tsx b/src/state/session/index.tsx index 668d9d8ca..a5362ac6b 100644 --- a/src/state/session/index.tsx +++ b/src/state/session/index.tsx @@ -4,6 +4,7 @@ import {BskyAgent, AtpPersistSessionHandler} from '@atproto/api' import {networkRetry} from '#/lib/async/retry' import {logger} from '#/logger' import * as persisted from '#/state/persisted' +import {PUBLIC_BSKY_AGENT} from '#/data' export type SessionAccount = persisted.PersistedAccount @@ -43,10 +44,6 @@ export type ApiContext = { clearCurrentAccount: () => void } -export const PUBLIC_BSKY_AGENT = new BskyAgent({ - service: 'https://api.bsky.app', -}) - const StateContext = React.createContext<StateContext>({ agent: PUBLIC_BSKY_AGENT, hasSession: false, |