Closed amritghimire closed 10 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
4b19b08
) 100.00% compared to head (c773572
) 100.00%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Refactored the token authorization in DVC studio client. Introduced distinct error classes such as 'StudioAuthError', 'InvalidScopesError', 'AuthorizationExpired' for improved error handling and clearer code. The function
check_token_authorization
now raises anAuthorizationExpired
exception if the authorization has expired instead of returning None implicitly. Further, unused imports and logging setups were removed for cleaner code. These changes are aimed to improve error debugging and the robustness of the authentication process.