feat: add sliding session timeout with idle and absolute caps
This commit is contained in:
@@ -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
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user