tuimail/proton-bridge
Shautvast dd9651a946 Add session expiry tracking and token refresh to proton-bridge
- Store expires_at (Unix timestamp) in session.json from ExpiresIn response field
- Add is_expired() with 5-minute refresh margin
- Implement POST /auth/v4/refresh flow: tries refresh before falling back to SRP login
- authenticate() now: use cached → refresh if expired → full login if all else fails

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-20 15:27:47 +01:00
..
src Add session expiry tracking and token refresh to proton-bridge 2026-02-20 15:27:47 +01:00
Cargo.toml Add proton-bridge crate: workspace setup and SRP authentication (Step 2) 2026-02-19 21:31:10 +01:00