SSO, settings page, etc #4
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
psa-systems/bunyip!4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "full-dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a tab is throttled in background, the system is suspended, or there's clock skew between the browser and mokosh, the background refresh loop can miss the 30s-before-expiry window. The user then clicks a tile (or any other authed action) and the call 401s — Bunyip surfaced this as an error card on the dashboard ("Your session expired. Please sign in again."), which is misleading because the refresh token is still valid. get_authed/post_authed now attempt a single force-refresh on 401. If it succeeds (the refresh token is still good), the original request is replayed with the rotated access token and the user sees no interruption. If refresh fails (refresh token revoked / expired), the original 401 surfaces normally and the user is bounced to /login by the SignedOut effect. Exposes a new pub(crate) helper try_refresh_access_token in stores::auth that the api/mod retry path calls. No public API change. Touches: - bunyip-web/src/stores/auth.rs: new try_refresh_access_token wrapping the existing force_refresh. - bunyip-web/src/api/mod.rs: 401 retry in get_authed + post_authed. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>