Cleanup getProfile
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user