Skip to content

feat(api): add auth middleware for JWT validation#48

Merged
rogerdigital merged 1 commit into
mainfrom
feat/auth-middleware
May 28, 2026
Merged

feat(api): add auth middleware for JWT validation#48
rogerdigital merged 1 commit into
mainfrom
feat/auth-middleware

Conversation

@rogerdigital
Copy link
Copy Markdown
Owner

Summary

  • Add Hono auth middleware that validates Bearer JWT tokens before route handlers
  • Invalid tokens return 401; missing tokens fall through for anonymous access
  • Public routes (health, auth) excluded from validation

Test plan

  • npm run typecheck passes
  • 194 API tests pass
  • npm run verify passes (pre-push hook)

🤖 Generated with Claude Code

Centralized Hono middleware that validates Bearer tokens before route
handlers run. Invalid tokens return 401; missing tokens fall through
for anonymous access (existing hasPermission fallback). Public routes
(/api/health, /api/auth/*) are excluded.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@rogerdigital rogerdigital merged commit f2f0b22 into main May 28, 2026
9 checks passed
@rogerdigital rogerdigital deleted the feat/auth-middleware branch May 28, 2026 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant