发布

  • feat(auth): improve unauthorized error handling for refresh and auto-refresh

    frostbyte_neo 发布于 2026-05-12 18:59:46 +00:00

    • Added isUnauthorizedError and hasUnauthorizedAuthFailure to classify and handle unauthorized errors.
    • Introduced refreshErrorFromError to map errors to standardized unauthorized responses.
    • Modified refresh logic to stop auto-refresh retries for unauthorized errors.
    • Updated tests to verify unauthorized error handling and refresh retry prevention.
    下载附件