feat: add sliding session timeout with idle and absolute caps

This commit is contained in:
2026-04-26 18:12:37 +09:30
parent 60799bbc52
commit d48e6b2f97
14 changed files with 398 additions and 31 deletions
+4
View File
@@ -95,6 +95,10 @@ class AuthClient:
"""Revoke a specific session belonging to the current user."""
return self._client.delete(f"/auth/sessions/{session_id}")
def refresh_session(self) -> dict:
"""Extend the current session's idle window."""
return self._client.post("/auth/sessions/refresh")
# ------------------------------------------------------------------
# Password recovery
# ------------------------------------------------------------------