SFDX: Grant type not supported

I’m trying to log in to an existing sandbox using the sfdx force:auth:web:login, which takes me to the login screen, I enter the password and email and I allow access, however in the browser I get a message: localhost didn't send any data, while in my CLI the message is ERROR: grant type not supported.

These are the requested permissions:

  • Access your basic information
  • Provide access to your data via the Web
  • Access and manage your data
  • Perform requests on your behalf at any time


The problem was that I was using the domain name instead of the plain test.salesforce.com.

This doesn’t work:

sfdx force:auth:web:login -r https://xyz.lightning.force.com/ -a XYZ

but this works:

sfdx force:auth:web:login -r https://test.salesforce.com/ -a XYZ

Source : Link , Question Author : smukov , Answer Author : smukov

Leave a Comment