Skip to content

fix(auth logout): clear credentials from git credential helper on logout#13450

Draft
babakks wants to merge 1 commit into
trunkfrom
babakks/cleanup-git-creds-on-logout
Draft

fix(auth logout): clear credentials from git credential helper on logout#13450
babakks wants to merge 1 commit into
trunkfrom
babakks/cleanup-git-creds-on-logout

Conversation

@babakks
Copy link
Copy Markdown
Member

@babakks babakks commented May 18, 2026

During login, if the user opts to authenticate git, the token is stored in the configured git credential helper via git credential approve. On logout, only gh's internal keyring was cleared, leaving the token in external helpers (e.g., osxkeychain, wincred). Now we also call git credential reject to remove it.

Fixes #13111

During login, if the user opts to authenticate git, the token is stored
in the configured git credential helper via `git credential approve`. On
logout, only gh's internal keyring was cleared, leaving the token in
external helpers (e.g., osxkeychain, wincred). Now we also call
`git credential reject` to remove it.

Fixes #13111

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@fproulx-boostsecurity
Copy link
Copy Markdown

This does not revoke it though. OAuth refresh token is long live (1 year-ish)

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.

gh auth logout does not erase and/or revoke OAuth token in MacOS Keychain

2 participants