Skip to content

Error for invalid token is misleading #7858

@jsoref

Description

@jsoref

Describe the bug

Error for invalid token is misleading.

Steps to reproduce the behavior

$ GH_TOKEN=hello-world gh auth status
github.com
  X github.com: authentication failed
  - The github.com token in GH_TOKEN is no longer valid.

Expected vs actual behavior

Don't say GH_TOKEN is no longer valid if you can't know if it was ever valid.

Logs

Paste the activity from your command line. Redact if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedContributions welcomep3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions