---
title: PKCE required
summary: Code: pkcerequired
section: errors
order: 67
---
# PKCE required

Code: `pkce_required`

- HTTP status: 400 Bad Request
- OAuth `error`: `invalid_request`
- Shown to the end user: This app sent an incomplete sign-in request, so we stopped it. Go back to the app and try again. If it keeps happening, tell the app's developer.

Request-specific detail for this error is safe to show to the person signing in.

## Cause

The request has no code_challenge, or its code_challenge_method is not S256, or the challenge is not a valid 43 to 128 character value.

## Fix

Send code_challenge (the base64url SHA-256 of your code_verifier) with code_challenge_method=S256 on /authorize, and the code_verifier on /token. The SDKs do this for you.

[All error codes](/errors/index.md)
