Update auth references from JWT to session tokens

- Remove previous_token_grace_until from RotateApiTokenResponse
- Update setToken JSDoc and CLI help text
- Update README auth documentation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 4.6 committed 2026-03-24 23:13:33 -04:00
1 parent 1e2f764414
commit 1c2bbad844
4 files changed
+4 -5

No files matched your search

+2 -2
View File
@@ -93,10 +93,10 @@ const client = new ElydoraClient({
### Authentication
```typescript
// Register a new user and organization
// Register a new user and organization (returns session token)
const reg = await ElydoraClient.register(baseUrl, email, password, displayName?, orgName?);
// Login and receive a JWT
// Login and receive a session token
const auth = await ElydoraClient.login(baseUrl, email, password);
// Set token on client
+1 -1
View File
@@ -41,7 +41,7 @@ function printUsage(): void {
console.log(`Elydora CLI — Tamper-evident audit for AI coding agents
Usage:
elydora install --agent <name> --org_id <id> --agent_id <id> --private_key <key> --kid <kid> [--token <jwt>] [--base_url <url>]
elydora install --agent <name> --org_id <id> --agent_id <id> --private_key <key> --kid <kid> [--token <token>] [--base_url <url>]
elydora uninstall --agent <name> [--agent_id <id>]
elydora status
elydora agents
+1 -1
View File
@@ -66,7 +66,7 @@ export class ElydoraClient {
}
/**
* Set the JWT token used for authenticated API calls.
* Set the API token used for authenticated API calls.
*/
setToken(token: string): void {
this.token = token;
-1
View File
@@ -273,7 +273,6 @@ export interface RotateApiTokenResponse {
readonly token: string;
readonly expires_at: number | null;
readonly token_id: string;
readonly previous_token_grace_until: number;
}
export interface HealthResponse {