github therobbiedavis/Listenarr 0.2.7
Canary 0.2.7

latest releases: 0.2.45, 0.2.44, 0.2.40...
pre-releaseone month ago

This pull request introduces important improvements to authentication handling and session management in the frontend. The main changes ensure that API keys are only used when server authentication is disabled, implement robust cross-tab logout so users are logged out everywhere when their session ends, and add new utilities and tests to support these features.

Authentication and API Key Handling

  • Updated both apiService and SignalRService to only attach the API key to requests if server authentication is disabled, preventing accidental bypassing of login/logout flows. This is determined by checking both camelCase and PascalCase variants of the authenticationRequired flag for compatibility. [1] [2]

Cross-tab Session Management

  • Enhanced sessionTokenManager in sessionToken.ts to support subscriber notifications on token changes, including handling storage events for cross-tab logout. Added the onTokenChange method and event handler for storage changes. [1] [2] [3]
  • Updated auth.ts store to react to token removals in other tabs by clearing user state and navigating to the login page, ensuring consistent logout across all open tabs. Also added comprehensive client-side cleanup during logout. [1] [2]

Testing and Utilities

  • Added a new unit test in sessionTokenStorage.test.ts to verify that su...

Automated canary build

Don't miss a new Listenarr release

NewReleases is sending notifications on new releases.