Skip to content

Conversation

@nikosdouvlis
Copy link
Member

Why

The community @hono/clerk-auth package has been the go-to for Clerk + Hono users, but as Hono's popularity grows we want to offer first-party support with faster iteration and direct issue triage.

This PR adds @clerk/hono, an official Clerk SDK for Hono that provides:

  • clerkMiddleware() - authenticates requests and attaches auth to Hono context
  • getAuth(c) - retrieves the auth object from context
  • verifyWebhook(c) - webhook verification via @clerk/hono/webhooks
  • Type augmentation for c.get('clerk') and c.get('clerkAuth')

The API is identical to @hono/clerk-auth for easy migration. Based on the community package by Vaggelis Yfantis.

The package is excluded from releases for now, as we want to collaborate with the Hono team on the migration path from @hono/clerk-auth before publishing.

Test plan

  • Unit tests for clerkMiddleware and getAuth
  • Verify export snapshot
  • Integration testing with a Hono app

@vercel
Copy link

vercel bot commented Feb 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview, Comment Feb 10, 2026 6:57pm

Request Review

@changeset-bot
Copy link

changeset-bot bot commented Feb 6, 2026

🦋 Changeset detected

Latest commit: 4426c11

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the core-3 label Feb 6, 2026
Why:
Migrate the community @hono/clerk-auth package to an official Clerk SDK.
With Hono's rising popularity, we want to offer first-party support with
faster iteration and direct issue triage.

What changed:
- clerkMiddleware() - authenticates requests, attaches auth to Hono context
- getAuth(c) - retrieves auth object from context
- verifyWebhook(c) - webhook verification via @clerk/hono/webhooks
- Type augmentation for c.get('clerk') and c.get('clerkAuth')

API is identical to @hono/clerk-auth for easy migration.

Based on the community package by Vaggelis Yfantis.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant