Summary
Try to fix Microsoft Teams authentication refresh issues from #1357 by providing the missing _tokenCache
interface to the Teams authentication provider. Should eliminate the frequent "Please sign in again" prompts after system sleep/wake cycles.
Other small fixes and enhanced login implemented as shown in the highlights
Highlights
- Authentication Re-login Fix: Implemented a localStorage-backed token cache bridge to resolve persistent re-authentication issues (#1357), allowing the Teams authentication provider to perform silent token refreshes and maintain user sessions across restarts and sleep/wake cycles.
- Enhanced Diagnostic Logging: Added comprehensive diagnostic logging for both authentication and screen sharing functionalities. This includes detailed insights into token cache operations, authentication state, screen sharing stream creation, and cleanup, which will aid in diagnosing future issues like screen sharing echo (#1800).
- Configuration Updates: Updated default application settings to enable the screen sharing thumbnail to always be on top and to enable incoming call toasts by default, improving user experience.
- Extensive Documentation: Introduced new detailed documentation, including an issue investigation report, a Product Requirements Document (PRD), and technical research documents covering the token cache authentication fix and future secure storage plans. This provides a clear roadmap and rationale for the changes.
Attempts to fix #1357 and add more logging to diagnose #1800