You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(sdk): deduplicate shared logic and fix type annotations
- Extract _parse_error_response into oauth/_parsing.py shared by sync and async clients
- Extract _validate_and_enrich and _copy_metadata helpers in discovery to eliminate duplication
- Replace copy.deepcopy with dataclasses.replace for Metadata copying
- Extract _is_token_valid module function in clientcreds/token_source.py
- Extract _handle_poll_error helper in authflow/device.py for polling error classification
- Add in-memory token cache to authflow/token_source.py to avoid redundant store reads
- Fix _with_file_lock type annotation from object to Callable[[], None]
- Remove unused request parameter from Django middleware _ensure_configured
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments