Skip to content

Update login session copy for four-week token lifetime - #259

Open
dauglyon wants to merge 1 commit into
mainfrom
fix/token-lifetime-four-weeks
Open

dauglyon wants to merge 1 commit into
mainfrom
fix/token-lifetime-four-weeks

Conversation

@dauglyon

@dauglyon dauglyon commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

KBase is extending the login/auth token lifetime from two weeks to four weeks. The account Log In Sessions tab hardcodes "two weeks" in its explanatory tooltip, which becomes incorrect after the change.

This updates that user-facing copy to say four weeks. No logic changes: the session tables already render each token's real, server-provided expires, so they track the actual lifetime automatically.

Changes

  • src/features/account/LogInSessions.tsx — tooltip copy "two weeks" → "four weeks" (text only; prettier reflowed the wrapped lines).

Context

Part of a small cross-repo sweep for hardcoded token-lifetime assumptions. This was the only such assumption in this repo — everything else reads the server-provided expiration. A companion PR in kbase/narrative removes a hardcoded 14-day cookie fallback.

@briehl briehl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's just a copy change in kbase/ui, right? It didn't do anything forceful like narrative, did it?

@dauglyon

Copy link
Copy Markdown
Collaborator Author

@briehl correct

@dauglyon

Copy link
Copy Markdown
Collaborator Author

Rerunning checks then merging

The account Log In Sessions tab stated sessions remain active for
two weeks. Token lifetime is being extended to four weeks, so update
the user-facing copy to match. The session tables already render the
real server-provided expiration, so no logic change is needed.
@dauglyon
dauglyon force-pushed the fix/token-lifetime-four-weeks branch from 13ec8b8 to 9c1fc6b Compare September 10, 2026 21:12

This branch has not been deployed

No deployments
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.

2 participants