Update auth references from JWT to session tokens
- Remove previous_token_grace_until from RotateApiTokenResponse - Update client/async_client docstrings - Update CLI help text and README Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
1576447b4b
commit
024ea8ee97
5 files changed
+8
-9
No files matched your search
+2
-2
@@ -50,7 +50,7 @@ class ElydoraClient:
|
||||
base_url: API base URL.
|
||||
ttl_ms: Time-to-live for operations in milliseconds.
|
||||
max_retries: Maximum number of retries on transient failures.
|
||||
token: Optional JWT bearer token for authenticated endpoints.
|
||||
token: Optional API token for authenticated endpoints.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
@@ -181,7 +181,7 @@ class ElydoraClient:
|
||||
|
||||
@staticmethod
|
||||
def login(base_url: str, email: str, password: str) -> AuthLoginResponse:
|
||||
"""Authenticate and receive a JWT."""
|
||||
"""Authenticate and receive a session token."""
|
||||
url = f"{base_url.rstrip('/')}/v1/auth/login"
|
||||
body = {"email": email, "password": password}
|
||||
resp = requests.post(url, json=body, headers={"Content-Type": "application/json"}, timeout=30)
|
||||
|
||||
Reference in new issue
Block a user