-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
bugSomething isn't workingSomething isn't workingpriority-1Affects a large population and inhibits workAffects a large population and inhibits work
Description
Describe the bug
Unable to login using gh auth login.
version: gh version 2.14.0 (2022-07-12)
Steps to reproduce the behavior
- run
gh auth login - Follow the prompts
- Press enter to open github.com in browser
- Enter one-time code
- Authorize
- Check back the status in the terminal
Expected vs actual behavior
Expected: Successful login.
Actual: Got 401 error code, unauthorized.
Logs
gh auth login
? What account do you want to log into? GitHub.com
? What is your preferred protocol for Git operations? HTTPS
? Authenticate Git with your GitHub credentials? Yes
? How would you like to authenticate GitHub CLI? Login with a web browser
! First copy your one-time code: xxxx-xxxx
Press Enter to open github.com in your browser...
Opening in existing browser session.
failed to authenticate via web browser: non-200 OK status code: 401 Unauthorized body: "{\"message\":\"Bad credentials\",\"documentation_url\":\"https://docs.github.com/graphql\"}"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority-1Affects a large population and inhibits workAffects a large population and inhibits work