···7272 await networkRetry(1, () => agent.resumeSession(prevSession))
7373 } else {
7474 agent.sessionManager.session = prevSession
7575- if (!storedAccount.signupQueued) {
7676- networkRetry(3, () => agent.resumeSession(prevSession)).catch(
7777- (e: any) => {
7878- logger.error(`networkRetry failed to resume session`, {
7979- status: e?.status || 'unknown',
8080- // this field name is ignored by Sentry scrubbers
8181- safeMessage: e?.message || 'unknown',
8282- })
8383-8484- throw e
8585- },
8686- )
8787- }
8875 }
89769077 // after session is attached
+6
src/state/session/index.tsx
···321321 )
322322 if (syncedAccount && syncedAccount.refreshJwt) {
323323 if (syncedAccount.did !== state.currentAgentState.did) {
324324+ /*
325325+ * Web handling: if leader tab has switched to a diff account that is
326326+ * stale, it will refresh the session before triggering the update to
327327+ * follower tabs. Follower tabs will therefore receive the fresh
328328+ * session. See APP-1960, or ask Eric.
329329+ */
324330 resumeSession(syncedAccount)
325331 } else {
326332 const agent = state.currentAgentState.agent as BskyAgent