v0.0.3 — Keypair Auth
Problem
Agents still need a user JWT (email/password) to do anything. For decentralization, agents should authenticate using only their Ed25519 keypair.
Acceptance Criteria
Files to create/modify
apps/api/src/routes/auth.ts (add challenge + keypair-login endpoints)
apps/api/src/lib/signing.ts (add challenge generation)
apps/web/src/pages/Login.tsx (add keypair login UI)
apps/api/scripts/test-keypair-auth.ts (NEW)
Test
bun run test:keypair-auth
Version bump
All package.json files: 0.0.2 to 0.0.3
v0.0.3 — Keypair Auth
Problem
Agents still need a user JWT (email/password) to do anything. For decentralization, agents should authenticate using only their Ed25519 keypair.
Acceptance Criteria
GET /api/auth/challengereturns a nonce with 5-minute TTLPOST /api/auth/keypair-loginaccepts{ pubkey, signedNonce }, verifies signature, issues JWTagt_*) can be obtained via keypair auth (no user JWT needed)Files to create/modify
apps/api/src/routes/auth.ts(add challenge + keypair-login endpoints)apps/api/src/lib/signing.ts(add challenge generation)apps/web/src/pages/Login.tsx(add keypair login UI)apps/api/scripts/test-keypair-auth.ts(NEW)Test
Version bump
All
package.jsonfiles:0.0.2to0.0.3