Skip to content

Conversation

@solita-topip
Copy link
Contributor

Summary

Add session expired dialog

Issue

Abzu Feature Request issue #1630

Provide visual information to users that the session has expired and a new login is required to continue using the system. Currently, the session expires silently in the background without any visual feedback for the user.

Closes #1630

Unit tests

Updated unit tests to validate that useAuth -hook also returns addAccessTokenExpiredCallback -function.

Documentation

Use the oidc-client-ts function addAccessTokenExpired to display a Material UI Dialog once the session has expired (AccessToken has expired). In normal use, the AccessToken is automatically refreshed in the background as long as the RefreshToken is valid.

The Dialog will have two CTAs: a) Log out, b) Log in.
Both actions will use the logout/login actions from the useAuth hook.

Before merging

Validate that translations are ok:

  • en
  • sv
  • nb
  • fr

@testower testower requested a review from a-limyr December 1, 2025 10:31
@testower testower requested review from testower and removed request for a-limyr January 22, 2026 09:45
"search_result_permanently_terminated": "Nedlagt",
"second": "sekund",
"seconds": "sekunder",
"session_expired_title": "Sesjon har utløpt",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"session_expired_title": "Sesjon har utløpt",
"session_expired_title": "Innloggingsøkten har utløpt",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Session expiration dialog

2 participants