Skip to content

[Redence verify] Auth middleware — add JWT verification middleware to a protected route #106

Description

@PAMulligan

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions