Skip to content

0.5.22.dev0 - MFA Improvements

Pre-release
Pre-release

Choose a tag to compare

@matin matin released this 08 Jan 18:08
· 50 commits to main since this release

MFA Improvements

This development release includes important improvements to the Multi-Factor Authentication (MFA) flow and error handling.

🔐 MFA Enhancements

  • Explicit token assignment: OAuth tokens are now explicitly assigned to the client after MFA completion in resume_login(), ensuring the client state is properly updated
  • MFA verification error handling: Added proper error checking in handle_mfa() - now raises GarthException with a clear message if MFA verification fails
  • Improved error messages: Changed login failure message from "Unexpected title" to "Login failed" for clearer error reporting

🛠️ HTTP Client Improvements

  • Status code handling: Removed 429 (Too Many Requests) from the retry status forcelist to prevent unnecessary retries on rate limit errors

📝 Code Quality

  • Removed redundant MFA checks
  • Code cleanup and linting fixes

🔄 Breaking Changes

None - this is a backward-compatible release.

📦 Installation

pip install garth==0.5.22.dev0

⚠️ Note

This is a development release. For production use, wait for the stable release.