mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-25 14:08:35 +02:00
[Enhancement]: In the Account screen, add in a line stating how long current login session is valid, possible button to revalidate login #1336
Reference in New Issue
Block a user
Originally created by @ZLoth on GitHub (Jan 28, 2026).
Describe the Feature/Enhancement
Please add to the login screen either how long the current login session is valid and/or date that the session expired. If that period is five days or less, provide a button to revalidate login.
Why would this be helpful?
Per https://www.audiobookshelf.org/docs/#security, as of ABS 2.26.0, the variable REFRESH_TOKEN_EXPIRY controls how long the login session lasts. As of ABS v2.31.0, this is 2592000 seconds, or 30 days. It would be helpful from the user perspective how long the current session is still valid.
Future Implementation (Screenshot)
Audiobookshelf App Version
Android App - 0.11.0
Current Implementation (Screenshot)
@Vito0912 commented on GitHub (Jan 28, 2026):
This should not be needed, nor should the user care about this:
So
-> you shouldn't even ever get close to 5 days (unless you did not use the app for 25 days, but then again the app needs to create an access token anyway and updates the refresh token). It is impossible for a user to see that 5 day screen.
There currently is an issue related to sessions being deleted too early, but this is not related to this
TL;DR: A refresh token should at most be "1 hour" old or instantly get refreshed is used after than hour period. There is no "5 days left" in that regard. If the user could see that message, the token would have refreshed already.