password auth removed Git Origin: Build & delivery Last updated 13 Oct 2026

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

GitHub no longer accepts account passwords for Git over HTTPS.

Exact message you may see Support for password authentication was removedPlease use a personal access token instead
Seen on: Git

Meaning

Use a personal access token (fine-grained or classic), the GitHub CLI / Git Credential Manager, or SSH keys.

Common causes

  • Using your GitHub password in a git prompt
  • Old scripts with user:password in URLs

⚡ Quick fix

  1. Create a token (Settings → Developer settings → Personal access tokens) and use it as the password
  2. Run gh auth login
  3. Switch the remote to SSH

Detailed fix by platform

Git

  1. git remote set-url origin git@github.com:owner/repo.git

How to diagnose

  1. Method — HTTPS with password?
  2. Recent change — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):

AADSTS50126 — AADSTS50126: Error validating credentials due to invalid username or password (Azure)AADSTS50126ATS — App Transport Security has blocked a cleartext HTTP resource load (iOS)ATSauth/invalid-credential — Firebase Auth: auth/invalid-credential (auth/wrong-password, auth/user-not-found, auth/invalid-login-credentials) (Authentication)auth/invalid-credenti…Authentication failed — fatal: Authentication failed for 'https://github.com/x/y.git/' (Git)Authentication failedbad auth : Authentication failed — MongoDB: MongoServerError: bad auth : Authentication failed (code 8000 / 18) (MongoDB)bad auth : Authentica…CERTIFICATE_VERIFY_FAILED — SSL: CERTIFICATE_VERIFY_FAILED / unable to get local issuer certificate (API)CERTIFICATE_VERIFY_FA…CLEARTEXT — CLEARTEXT communication to host not permitted by network security policy (Android)CLEARTEXTCould not load the default credentials — Google Cloud: Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started (Google Cloud / Firebase)Could not load the de…password …

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.