···33import {useLingui} from '@lingui/react'
4455import {logger} from '#/logger'
66-import {isWeb} from '#/platform/detection'
76import {type SessionAccount, useSessionApi} from '#/state/session'
87import {useLoggedOutViewControls} from '#/state/shell/logged-out'
98import * as Toast from '#/view/com/util/Toast'
···2827 try {
2928 setPendingDid(account.did)
3029 if (account.accessJwt) {
3131- if (isWeb) {
3232- // We're switching accounts, which remounts the entire app.
3333- // On mobile, this gets us Home, but on the web we also need reset the URL.
3434- // We can't change the URL via a navigate() call because the navigator
3535- // itself is about to unmount, and it calls pushState() too late.
3636- // So we change the URL ourselves. The navigator will pick it up on remount.
3737- history.pushState(null, '', '/')
3838- }
3930 await resumeSession(account, true)
4031 logEvent('account:loggedIn', {logContext, withPassword: false})
4132 Toast.show(_(msg`Signed in as @${account.handle}`))