0.5.22.dev0 - MFA Improvements
Pre-release
Pre-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 raisesGarthExceptionwith 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.