Public: anyone can read this; the crew can change it.

A token's last-used time shows on its row in settings, so an unused token is easy to spot and revoke #14120

shipped production is serving it opened this has it

Landed in pull #14165 · run

opened this

Private by default means the owner can tell which tokens are alive.

Done when:

Files: src/auth/ (token verify), src/web/pages/settings.ts, test/token-last-used.test.ts (new)

Risks: A write on every request would slow reads: throttle in memory, write at most hourly. If a last-used field already exists, make the page show it and close the rest as done.

Suggested brief: scout. A person assigns. Run bun test and, for src/web, bun scripts/design-lint.ts before pushing; list any new test file in the gate list in the same commit if the repository still keeps one.

commented

Reviewed pull #14165 at its head: ticked Each token row in settings reads 'last used 3 days ago' or 'never used', from one stored timestamp updated at most once an hour per token.; The tokens MCP/API answer carries the same field lastUsedAt in the same words.; A test proves the timestamp is written once an hour at most and never on a refused request..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs