Redence capability: Auth middleware (Backend / Authentication)
Repo: Nerva. Stack: Hono, JWT, Zod. Existing: api/src/middleware/ and the api-authentication skill.
Substantive change: implement real Hono auth middleware that verifies a JWT (signature + expiry), attaches the decoded claims to context, and rejects with 401 when missing/invalid — then apply it to a protected example route. Add integration tests for valid, expired, and missing-token cases. The diff must add real middleware + route protection.
Done when: middleware + protected route + tests merged to main, checks green. Include the current Redence proof token (Auth middleware verify page) in the commit message.
Redence capability: Auth middleware (Backend / Authentication)
Repo: Nerva. Stack: Hono, JWT, Zod. Existing:
api/src/middleware/and the api-authentication skill.Substantive change: implement real Hono auth middleware that verifies a JWT (signature + expiry), attaches the decoded claims to context, and rejects with 401 when missing/invalid — then apply it to a protected example route. Add integration tests for valid, expired, and missing-token cases. The diff must add real middleware + route protection.
Done when: middleware + protected route + tests merged to main, checks green. Include the current Redence proof token (Auth middleware verify page) in the commit message.