Error authenticating with auth code due to: invalid_grant::unexpected code verifier This is most likely not an error with the Salesforce CLI. Please ensure all information is accurate and try again.
1 answer
Divya Chauhan (Kcloud Technologies) Forum Ambassador
Hello, @Bhumi Patel
Check the following things-
1. After logging I, ensure the browser shows "Authentication successful" and closes the window. If not, try a different browser.
2.The default port(1717) might be blocked.Run sfdx force:auth:web: login _ _ port 800 in the terminal to use a different port.
3. Update your CLI with sfdx update, and an outdated version can cause this error.
4. Make sure you are logging into the right org and not another instance by mistake.