Uh oh!
There was an error while loading. Please reload this page.
feat(hono): Add Frontend API proxy support - #7988
Conversation
Adds the ability for the Hono middleware to proxy requests to Clerk's Frontend API, useful when direct client-to-Clerk communication is blocked. Includes: - FrontendApiProxyOptions interface with 'enabled' (boolean or function) and 'path' config - Early interception of proxy requests before authentication - Auto-derivation of proxyUrl from middleware config - Full test coverage for proxy scenarios Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: f2af2b8 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
@clerk/agent-toolkit@clerk/astro@clerk/backend@clerk/chrome-extension@clerk/clerk-js@clerk/dev-cli@clerk/expo@clerk/expo-passkeys@clerk/express@clerk/fastify@clerk/hono@clerk/localizations@clerk/nextjs@clerk/nuxt@clerk/react@clerk/react-router@clerk/shared@clerk/tanstack-react-start@clerk/testing@clerk/ui@clerk/upgrade@clerk/vuecommit: |
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds Frontend API proxy support to the Hono Clerk middleware via a new Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Uh oh!
There was an error while loading. Please reload this page.
Move FrontendApiProxyOptions to types.ts with JSDoc and use default-parameter destructuring for option resolution.
brkalow
commented
Mar 5, 2026
Closing in favor of #7994 |
Description
Adds Frontend API proxy support to the Clerk Hono middleware, enabling request interception and forwarding to Clerk's Frontend API when direct client-to-Clerk communication is blocked.
Key features:
FrontendApiProxyOptionsinterface with boolean or function-based enablingproxyUrlfrom middleware configurationTesting: All new functionality is covered by 6 test cases validating default/custom paths, enable/disable logic, function-based enabling, and auto-derivation behavior.
Type of change
Summary by CodeRabbit
New Features
Tests