title: code_verifier does not match the code_challenge supplied in the authorization request for PKCE
body: <p>While trying to get custom domains for customers using partner center API, We were using APP only authentication to fetch custom domains but We need to go with APP + USER authentication to fetch custom domains. We have tried APP + USER authentication by using below link:</p>
  <p><a href="https://login.microsoftonline.com/common/oauth2/authorize?&amp;client_id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&amp;response_type=code&amp;redirect_url=http://localhost" rel="nofollow noreferrer">APP+USER</a></p>
  <p>We had implemented the code for the same to allow APP + USER authentication. Our SPA(React JS Application) will give the auth code, and SPA will call one service to process that request to partner center API to generate refresh token and access token through auth code and store that refresh token to key vault. But while processing request, we are unable to get token</p>
  <pre><code>{&quot;error&quot;:&quot;invalid_grant&quot;,&quot;error_description&quot;:&quot;AADSTS50148: The code_verifier does not match the code_challenge supplied in the authorization request for PKCE.\r\nTrace ID: 3b5b5d7c-a680-4ccf-ab2c-a474d9196b00\r\nCorrelation ID: 370937cc-3272-4b06-b089-9c5978485fb5\r\nTimestamp: 2020-11-23 12:43:24Z&quot;,&quot;error_codes&quot;:[50148],&quot;timestamp&quot;:&quot;2020-11-23 12:43:24Z&quot;,&quot;trace_id&quot;:&quot;3b5b5d7c-a680-4ccf-ab2c-a474d9196b00&quot;,&quot;correlation_id&quot;:&quot;370937cc-3272-4b06-b089-9c5978485fb5&quot;,&quot;error_uri&quot;:&quot;https://login.microsoftonline.com/error?code=50148&quot;}
  
  {&quot;error&quot;:&quot;invalid_request&quot;,&quot;error_description&quot;:&quot;AADSTS9002327: Tokens issued for the 'Single-Page Application' client-type may only be redeemed via cross-origin requests.\r\nTrace ID: 14c9cba0-90c5-4f84-9a0b-472d1923a500\r\nCorrelation ID: 784cf9c2-c571-4cbe-9b0c-15ef71bb276d\r\nTimestamp: 2020-11-24 11:02:03Z&quot;,&quot;error_codes&quot;:[9002327],&quot;timestamp&quot;:&quot;2020-11-24 11:02:03Z&quot;,&quot;trace_id&quot;:&quot;14c9cba0-90c5-4f84-9a0b-472d1923a500&quot;,&quot;correlation_id&quot;:&quot;784cf9c2-c571-4cbe-9b0c-15ef71bb276d&quot;}
  </code></pre>