diff --git a/README.md b/README.md index 5e91110..eac31b2 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ async def main(): org_id="org-123", agent_id="agent-456", private_key="", - token="", + token="", ) eor = client.create_operation( @@ -107,7 +107,7 @@ client = ElydoraClient( base_url="https://...", # API base URL (default: https://api.elydora.com) ttl_ms=30000, # Operation TTL in ms (default: 30000) max_retries=3, # Max retries on transient failures (default: 3) - token="", # Optional JWT bearer token + token="", # Optional API token ) ``` @@ -117,7 +117,7 @@ client = ElydoraClient( # Register a new user and organization reg = ElydoraClient.register(base_url, email, password, display_name=None, org_name=None) -# Login and receive a JWT +# Login and receive a session token auth = ElydoraClient.login(base_url, email, password) # Get current authenticated user profile diff --git a/elydora/async_client.py b/elydora/async_client.py index 068de65..c2fe050 100644 --- a/elydora/async_client.py +++ b/elydora/async_client.py @@ -51,7 +51,7 @@ class AsyncElydoraClient: 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__( @@ -187,7 +187,7 @@ class AsyncElydoraClient: @staticmethod async 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} async with aiohttp.ClientSession() as session: diff --git a/elydora/cli.py b/elydora/cli.py index b5ced21..721bb99 100644 --- a/elydora/cli.py +++ b/elydora/cli.py @@ -172,7 +172,7 @@ def build_parser() -> argparse.ArgumentParser: install_parser.add_argument("--agent_id", required=True, help="Agent ID") install_parser.add_argument("--private_key", required=True, help="Base64url-encoded Ed25519 private key seed") install_parser.add_argument("--kid", required=True, help="Key ID") - install_parser.add_argument("--token", default="", help="JWT bearer token (optional)") + install_parser.add_argument("--token", default="", help="API token (from Console)") install_parser.add_argument("--base_url", default="https://api.elydora.com", help="API base URL") # uninstall diff --git a/elydora/client.py b/elydora/client.py index e04bd9b..a477f64 100644 --- a/elydora/client.py +++ b/elydora/client.py @@ -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) diff --git a/elydora/types.py b/elydora/types.py index c4accb7..272695e 100644 --- a/elydora/types.py +++ b/elydora/types.py @@ -315,7 +315,6 @@ class RotateApiTokenResponse(TypedDict): token: str expires_at: Optional[int] token_id: str - previous_token_grace_until: int # Backward compatibility aliases (deprecated)