Skip to main content
Version: 4.37.1

SharePoint session reconnect

Version: 4.37.1 Date: 2026-09-24

Goal: Users who only browse documents never refresh the SharePoint token, so thumbnails fail and they stay stuck with no way to sign in again.

Solution: Detect a gateway re-authentication failure on thumbnail load, show one banner, and open the login only when the user clicks Reconnect. A successful login reloads the thumbnails.

Features:

  • A banner under the top warning asks the user to reconnect when the SharePoint session is expired
  • Thumbnails do not open a login window on their own
  • A SharePoint download still opens the login when the session is expired
  • After reconnect, the banner goes away and thumbnails are fetched again

Implementation Details:

  • Shared session-expired signal between thumbnails, downloads, and the banner
  • Banner clears only after a successful login

Files Modified:

  • src/protocol/externalSession.ts - Session-expired signal shared by thumbnails and the banner
  • src/protocol/bcyipApi.ts - Turn a gateway re-authenticate error into that signal
  • src/components/SharePointSessionBanner/SharePointSessionBanner.tsx - Reconnect banner
  • src/components/DocumentsPanel/Thumbnail.tsx - Report the expired session and refetch after login
  • src/App.tsx - Place the banner with the other top banners
  • src/scss/app.scss - Banner styles aligned with the update banner
  • src/services/fileProtect/config.pipe.ts - Clear the banner only after a successful login
  • src/utils/downloadHelpers.ts - SharePoint download reconnects when the session is expired
  • src/protocol/index.ts - Export the session helpers

Release fragment: fix-sharepoint-session-prompt