Using Auth0 + ChatGPT? For Auth0-specific issues (Post-Login Actions, JWE vs JWS tokens, scopes not showing up, etc.), see
docs/auth0/chatgpt-post-login-action.md→ “Troubleshooting checklist”.
401 with valid token
- Check
OAUTH_AUDIENCEmatches the tokenaud - Check
OAUTH_ISSUERmatches tokenissand the JWKS URL resolves - Ensure RS256 is used; HS256 will be rejected when
OAUTH_ENFORCE_ALG=RS256
403 on write
- Your token likely lacks
tool:write; confirm “Add Permissions in the Access Token” is enabled on the API
Proxy not injecting user
- Verify
PROXY_TARGETis reachable - Confirm
PROXY_INJECT_HEADER/PROXY_INJECT_QUERYare set and your route is going through the proxy handler
Rate limit never triggers
- Lower
RATE_LIMIT_MAXand ensure identifier (user/tenant) is parsed from the token’ssub/org_id