How to fix Salesforce Connection Error - Missing Required Code Challange

Problem

When you click Generate Token button, you may get an error like the one below.

Salesforce OAuth Generate Token Error - Missing Required Code Challenge

Salesforce OAuth Generate Token Error – Missing Required Code Challenge

Solution

Here is how to fix it.

For Salesforce Connection UI: Go to Advanced Tab => Check Enable PKCE Code Verifier option
–OR–
For OAuth Connection UI: Go to OAuth2 Grant Options Tab => Check Enable Code Verifier Option

Enable PKCE code verifier option - OAuth Connection for Salesforce

Enable PKCE code verifier option – OAuth Connection for Salesforce.