JWT Validation Fails with "Invalid number of parts: Expected 3 parts; got 5" Error Message
Sep 25, 2025
Overview
After receiving an access token, a JWT validation fails with the error message "Invalid number of parts: Expected 3 parts; got 5"
Applies To
- JWT validation
- Access token format
Cause
- Paste the token at https://jwt.io and confirm that it does not have this middle payload section.
- This token is still valid. It is in a different format called an opaque access token.
Solution
Include an audience parameter in the /authorize request to have a payload in the access token. See Opaque Versus JWT Access Token for more information about Opaque Tokens.