Unable to Use Personal Access Tokens (PAT) in Github Desktop
See original GitHub issueDescribe the bug
Github recently sent me the following alert:
You recently used a password to access an endpoint through the GitHub API using git-credential-manager (Microsoft Windows NT 6.2.9200.0; Win32NT; x64) CLR/4.0.30319 git-tools/1.18.3. We will deprecate basic authentication using password to this endpoint soon:
https://api.github.com/user/subscriptions
We recommend using a personal access token (PAT) with the appropriate scope to access this endpoint instead. Visit https://github.com/settings/tokens for more information.
The only endpoint I have used to log in with is the Desktop app. I created a PAT, which says it may be used as a password. I logged out of Github Desktop, then attempted to log back in with my email address and the PAT, instead of my password. I received an authentication error: Bad username or password. Instead, I signed in with my password.
Version & OS
Win 10, Github 2.2.4
Steps to reproduce the behavior
- Go to https://github.com/settings/tokens
- Create new PAT
- Sign out of Github Desktop
- Sign into Github Desktop
- Look for a place to enter a PAT. Seeing none, enter PAT in password field.
- Authentication error.
Expected behavior
Expected a PAT to act as an alternative to a password; OR see a location to enter a PAT; OR see a link for instructions on how to use a PAT in the desktop.
Actual behavior
None of those things occurred. It was a regular old email/password login screen.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Github Desktop Authentication Failed - Stack Overflow
Instead entering your VSTS / Azure DevOPS username and password, rather create a Personal Access Token (PAT), and use that for the password....
Read more >My GitHub Desktop is not able to authenticate with GitLab.com
Did you manage to create a Personal Access Token in your profile, and use the token as the password? How does the clone...
Read more >Github Personal Access Token - Lito
For Windows OS ⤴ ; Add a generic credential => Internet address will be git:https://github.com and you need to type in your username...
Read more >Github Desktop Authentication Failed – Login Error
As another solution, you can resolve the issue by creating a PAT (Personal Access Token) in your GitHub account and using it instead...
Read more >Authenticate with your Git repos - Azure - Microsoft Learn
Personal access tokens (PATs) give you access to Azure DevOps and ... use Linux, macOS, or Windows running Git for Windows and can't...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@aarontitus as we have not heard back from you I am going to close this issue out. If you are still having issues authenticating please let us know!
@BalintN-MPP you do not need to generate a PAT to use with GitHub Desktop unless you are using a third-party service like GitLab or Bitbucket.