about summary refs log tree commit diff
path: root/src/state/session
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/session')
-rw-r--r--src/state/session/index.tsx5
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,