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

Suspending or dropping an account ends its OAuth refresh tokens and codes #14960

shipped production is serving it opened this has it

Landed in pull #14996 · run

opened this

Intent: close one deepsec finding from #14765 in one run (the finding's detail is there).

Done when

Files: src/core/accounts.ts, test/

Risks: Listing grants by refresh family is #14904; do not touch src/core/oauth.ts here.

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

commented

Reviewed pull #14996 at its head: ticked dropCredentials deletes oauth_refresh and oauth_code rows by user_id; a test suspends an account holding a refresh token, unsuspends it, and the refresh is refused; it fails on today's main; bun test passes.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs