Support for password authentication was removed. Please use a personal access token instead.

shafia

Shafia Rahman Chowdhury

Posted on July 4, 2023

Support for password authentication was removed. Please use a personal access token instead.

While pushing some codes into your GitHub repository you may encounter the error "Support for password authentication was removed. Please use a personal access token instead." as shown in the picture below

Image description

Starting from August 13, 2021, GitHub has stopped accepting passwords for verifying Git operations on user accounts. Instead, you will need to use a Personal Access Token (PAT) in place of your password. To add a PAT to your system, you can follow the steps outlined below.

Step 1: Go to your GitHub Account and then go to the Settings(click on your profile account and you will find the Settings option there)

Step 2: Scroll down and at the sidebar you will see the Developer Settings option. Click on Developer Settings.

Image description

Step 3: Click on Personal access tokens and then click on Tokens (classic)

Image description

Step 4: Click on Generate new token and then click on Generate new token (classic)

Image description

Step 5: Fill-up the Note field, select No expiration and then select the checkboxes as shown in the picture

Image description

Image description

Step 6: Click on the Generate token. Your token is created!.

Image description

Step 7: Copy the token and paste it on the password field of the terminal.

Image description

Your code got successfully pushed into your repository!

Image description

However, after applying your token you may face this error.

Image description

Visit this blog(https://dev.to/shafia/common-github-issues-beginners-may-face-29bb) and follow the steps given in Error 3 Solution 1.

Happy coding!

💖 💪 🙅 🚩
shafia
Shafia Rahman Chowdhury

Posted on July 4, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related