- 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> |
||
|---|---|---|
| .. | ||
| auth.rs | ||
| config.rs | ||
| main.rs | ||
| srp.rs | ||