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:
1 parent
1e2f764414
commit
1c2bbad844
4 files changed
+4
-5
No files matched your search
@@ -93,10 +93,10 @@ const client = new ElydoraClient({
|
|||||||
### Authentication
|
### Authentication
|
||||||
|
|
||||||
```typescript
|
```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?);
|
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);
|
const auth = await ElydoraClient.login(baseUrl, email, password);
|
||||||
|
|
||||||
// Set token on client
|
// Set token on client
|
||||||
|
|||||||
+1
-1
@@ -41,7 +41,7 @@ function printUsage(): void {
|
|||||||
console.log(`Elydora CLI — Tamper-evident audit for AI coding agents
|
console.log(`Elydora CLI — Tamper-evident audit for AI coding agents
|
||||||
|
|
||||||
Usage:
|
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 uninstall --agent <name> [--agent_id <id>]
|
||||||
elydora status
|
elydora status
|
||||||
elydora agents
|
elydora agents
|
||||||
|
|||||||
+1
-1
@@ -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 {
|
setToken(token: string): void {
|
||||||
this.token = token;
|
this.token = token;
|
||||||
|
|||||||
@@ -273,7 +273,6 @@ export interface RotateApiTokenResponse {
|
|||||||
readonly token: string;
|
readonly token: string;
|
||||||
readonly expires_at: number | null;
|
readonly expires_at: number | null;
|
||||||
readonly token_id: string;
|
readonly token_id: string;
|
||||||
readonly previous_token_grace_until: number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface HealthResponse {
|
export interface HealthResponse {
|
||||||
|
|||||||
Reference in new issue
Block a user