-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
authrelated to tokens, authentication state, or oauthrelated to tokens, authentication state, or oauthenhancementa request to improve CLIa request to improve CLIhelp wantedContributions welcomeContributions welcome
Description
It is sometimes desirable for a user to see the token gh uses for a given host. Right now they'd need to do one of two things:
cat ~/.config/gh/hosts.ymlgh config get -h github.com oauth_token
Neither of these is perfect, so this issue covers adding something to gh auth status like:
✓ Token: *******************
and supporting a flag --show-token/-t that prints the actual token value.
I'm also imagining nontty support like this:
gh auth status -h github.com -t >mytoken.txt
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
authrelated to tokens, authentication state, or oauthrelated to tokens, authentication state, or oauthenhancementa request to improve CLIa request to improve CLIhelp wantedContributions welcomeContributions welcome