Skip to content

Release v1.3.2

Choose a tag to compare

@mickgiles mickgiles released this 05 Sep 00:06
· 41 commits to main since this release

πŸ”§ 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