Repository navigation
Release v1.3.2
π§ Enhanced JWT Timestamp Handling and Session Management
Key Improvements
- π JWT Timestamp Precision Normalization: Automatically normalizes millisecond timestamps to seconds for consistent processing across different VeSync regional endpoints
- π‘οΈ Enhanced Session Management: Improved session persistence with better error handling and validation flows
- πΎ Optimized Persistence: Best-effort session saving immediately after successful authentication with comprehensive debug logging
- β‘ Authentication Reliability: Enhanced token expiration calculations and cross-region compatibility
Technical Enhancements
- ποΈ Timestamp Standardization: Automatic detection and conversion of millisecond timestamps (>1e11) to seconds
- π Session Robustness: Enhanced error messages and recovery flows for session hydration failures
- π Compatibility Layer: Maintains support for both second and millisecond timestamp formats from different regions
- π Comprehensive Logging: Detailed debug information for session lifecycle events and token validation
Benefits
- π Cross-Region Support: Better handling of JWT tokens from different VeSync regional endpoints
- π Performance: Optimized session management with reduced overhead and better error recovery
- π‘οΈ Edge Case Prevention: Fixes authentication issues with tokens using inconsistent timestamp precision
- π Backward Compatibility: Maintains compatibility with existing authentication flows and token formats
This release significantly improves authentication reliability and session persistence for the TSVeSync library, providing a more robust foundation for homebridge-tsvesync and other dependent applications.
Full changelog: https://github.com/mickgiles/tsvesync/blob/main/CHANGELOG.md
π€ Generated with Claude Code