Skip to main content
Version: 4.37.1

SharePoint session reconnect

Overview​

Browsing documents does not refresh the SharePoint token. When the gateway asks to sign in again, thumbnails fail quietly unless the user is told.

How it works​

Thumbnail loads that hit a gateway re-authentication error set a shared session-expired signal. A banner under the other top warnings offers Reconnect. Thumbnails do not open a login window by themselves. A SharePoint download still opens the login. A successful login clears the banner and refetches thumbnails.

Key files​

  • src/protocol/externalSession.ts — session-expired signal
  • src/protocol/bcyipApi.ts — maps a gateway re-authenticate error to that signal
  • src/components/SharePointSessionBanner/SharePointSessionBanner.tsx — reconnect banner
  • src/components/DocumentsPanel/Thumbnail.tsx — report expiry and refetch after login
  • src/utils/downloadHelpers.ts — download still opens login when the session is expired