Skip to content

ability to print auth token #1514

Description

@vilmibm

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.yml
  • gh 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

Activity

  1. added
    enhancementa request to improve CLI
    authrelated to tokens, authentication state, or oauth
    on Aug 11, 2020
  2. changed the title [-]ability to print token[/-] [+]ability to print auth token[/+] on Aug 11, 2020
  3. rista404 commented on Oct 11, 2020

    @rista404
    Contributor

    @vilmibm will take this one!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authrelated to tokens, authentication state, or oauthenhancementa request to improve CLIhelp wantedContributions welcome

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions