Keep the session when only the access token has expired #219

Merged
jcoffey-dev merged 1 commits from fix/214-refresh-token-guard into main 2026-11-16 15:56:00 +00:00
1 Commits
Author SHA1 Message Date
jcoffey-dev faa233551d Keep the session when only the access token has expired
ci / build (pull_request) Skipped
ci / notices (pull_request) Successful in 48s
ci / publish (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 4m4s
The route guard counted an admin as signed in only while the hour-long
access token was valid, so any fresh load after that went to the
password page even though the refresh token behind it was still good.
On a phone, where Android reloads an installed app when it comes back,
that meant signing in again nearly every time.

The guard now also accepts a stored refresh token. The first request
renews the access token, and a refused renewal ends the session as
before.

Fixes #214
2026-11-16 08:33:59 -07:00