PKCE
Proof Key for Code Exchange (PKCE) is an extension to the OAuth 2.0 Authorization Code grant that improves security for public clients, such as mobile or native apps, which cannot securely store a client secret. PKCE helps prevent interception of the authorization code by ensuring that the code obtained in the authorization request can only be exchanged for tokens by the same client that initiated the request. It is defined in RFC 7636 and widely adopted as part of OAuth 2.0 Security Best Current Practice.
How PKCE works: the client generates a code_verifier, a high-entropy cryptographic random string between 43 and
During the token request, the client sends the code_verifier. The server recomputes the code_challenge from the
PKCE is primarily intended for public clients, such as native, mobile, and single-page applications. It does