Skip to content

Commit 756f4ec

Browse files
authored
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
2 parents b189298 + d68a4da commit 756f4ec

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

pkg/cmd/auth/logout/logout.go

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,20 @@ func NewCmdLogout(f *cmdutil.Factory, runF func(*LogoutOptions) error) *cobra.Co
3939
for an account. The authentication configuration is only
4040
removed locally.
4141
42-
This command does not invalidate authentication tokens.
42+
This command does not revoke authentication tokens.
43+
44+
To revoke all authentication tokens generated by the GitHub CLI:
45+
46+
1. Visit <https://github.com/settings/applications>
47+
2. Select the "GitHub CLI" application
48+
3. Select "Revoke Access"
49+
4. Select "I understand, revoke access"
50+
51+
Note: this procedure will revoke all authentication tokens ever
52+
generated by the GitHub CLI across all your devices.
53+
54+
For more information about revoking OAuth application tokens, see:
55+
<https://docs.github.com/en/apps/oauth-apps/using-oauth-apps/reviewing-your-authorized-oauth-apps>
4356
`),
4457
Example: heredoc.Doc(`
4558
# Select what host and account to log out of via a prompt

0 commit comments

Comments
 (0)