|
Fix OAuth callback to handle missing code and error responses
FastAPI validated code/state as required query params before the handler body ran, so any OAuth error response (e.g. invalid_scope from offline_access, user denied consent) produced an opaque 422 "Field required" instead of a readable error message. - Make code, state, error, error_description all optional with defaults - Detect OAuth error responses and return a clear 400 with the error - Guard state[:8] slicing when state may be None Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
|---|
|
|
| navi/api/routes/auth.py |
|---|