sfdx force:jwt:grant unable to authenticate
How to fix sfdx force:jwt:grant unable to authenticate issue.
When you try to login to your sandbox using SFDX at times you might comes across this error which is ...
sfdx force:jwt:grant unable to authenticate
The fix is simple though, you need to run this command in your terminal (if you are using a mac)
Which basically means that you are looking forward to get authenticated against a sandbox and not Developer Org or Production Org.
If you are using Visual Studio Code you can also make some changes to the sfdx-project.json
file to get around this problem.
- Open the project and go to
sfdx-project.json
file - Change
sfdcLoginUrl
fromhttps://login.salesforce.com
tohttps://test.salesforce.com
- Authorize your org
Hope this help!