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

An expired OAuth access token's grant stays listed and revocable until its refresh token is gone #14904

shipped production is serving it opened this has it

Landed in pull #15000 · run

opened this

Sweep finding: pruneTokens removes the row that identifies a grant, so a grant whose refresh token still mints access tokens vanishes from every revoke surface.

Intent: one run closes this finding from #14766 (tick it there).

Done when

Files: src/core/oauth.ts, test/ (the oauth test)

Risks: a new state word on the settings page: use the page's plain words.

Brief: a security builder (a Sonnet-sized change, one file area).

commented

Reviewed pull #15000 at its head: ticked grants list and revoke by refresh family, so one with no live access token shows as 'idle, renews' and can be revoked; a test: expire the access token, the grant is still listed, revoking it ends the refresh; fails on today's main; bun test passes.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs