question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to Use Personal Access Tokens (PAT) in Github Desktop

See original GitHub issue

Describe 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

  1. Go to https://github.com/settings/tokens
  2. Create new PAT
  3. Sign out of Github Desktop
  4. Sign into Github Desktop
  5. Look for a place to enter a PAT. Seeing none, enter PAT in password field.
  6. 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
stevewardcommented, Jan 21, 2020

@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!

0reactions
stevewardcommented, Jan 6, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found