Merge pull request #10490 from cli/kw/cli-10095-document-how-to-revoke-oauth-tokens

docs: document how to revoke `gh` OAuth tokens in `auth logout`'s help
This commit is contained in:
Kynan Ware 2025-02-24 14:24:44 -07:00 committed by GitHub
commit 756f4ec04a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,20 @@ func NewCmdLogout(f *cmdutil.Factory, runF func(*LogoutOptions) error) *cobra.Co
for an account. The authentication configuration is only
removed locally.
This command does not invalidate authentication tokens.
This command does not revoke authentication tokens.
To revoke all authentication tokens generated by the GitHub CLI:
1. Visit <https://github.com/settings/applications>
2. Select the "GitHub CLI" application
3. Select "Revoke Access"
4. Select "I understand, revoke access"
Note: this procedure will revoke all authentication tokens ever
generated by the GitHub CLI across all your devices.
For more information about revoking OAuth application tokens, see:
<https://docs.github.com/en/apps/oauth-apps/using-oauth-apps/reviewing-your-authorized-oauth-apps>
`),
Example: heredoc.Doc(`
# Select what host and account to log out of via a prompt