OAuth 2.0 public clients, such as native mobile apps and browser-based apps, cannot safely keep a client secret. During the authorization-code flow, an attacker who intercepts the authorization code may try to exchange it for an access token. Proof Key for Code Exchange (PKCE), defined in RFC 7636, binds the authorization request to the later token exchange. The client creates a high-entropy code verifier, sends a derived code challenge in the authorization request, and later presents the verifier when redeeming the code. The authorization server checks that the verifier matches the original challenge. Use PKCE with the S256 challenge method and follow current OAuth security guidance rather than relying on a client secret embedded in a public app. Source: Internet Engineering Task Force