Cleanup getProfile

This commit is contained in:
Eric Bailey 2023-11-09 20:39:54 -06:00
parent ab878ba9a6
commit 2d7b89c6a1
3 changed files with 9 additions and 27 deletions

View file

@ -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,