diff options
Diffstat (limited to 'src/state/session')
-rw-r--r-- | src/state/session/agent.ts | 7 | ||||
-rw-r--r-- | src/state/session/index.tsx | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/state/session/agent.ts b/src/state/session/agent.ts index 84c816d44..ba0c14c1a 100644 --- a/src/state/session/agent.ts +++ b/src/state/session/agent.ts @@ -83,7 +83,12 @@ export async function createAgentAndLogin( ) => void, ) { const agent = new BskyAppAgent({service}) - await agent.login({identifier, password, authFactorToken}) + await agent.login({ + identifier, + password, + authFactorToken, + allowTakendown: true, + }) const account = agentToSessionAccountOrThrow(agent) const gates = tryFetchGates(account.did, 'prefer-fresh-gates') diff --git a/src/state/session/index.tsx b/src/state/session/index.tsx index 48b258863..03a8a936a 100644 --- a/src/state/session/index.tsx +++ b/src/state/session/index.tsx @@ -258,7 +258,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) { ], ) - // @ts-ignore + // @ts-expect-error window type is not declared, debug only if (__DEV__ && isWeb) window.agent = state.currentAgentState.agent const agent = state.currentAgentState.agent as BskyAppAgent |