René's URL Explorer Experiment


Title: fix(nextjs): Update `clerkMiddleware` request callback to accept an async function by LauraBeatris · Pull Request #5154 · clerk/javascript · GitHub

Open Graph Title: fix(nextjs): Update `clerkMiddleware` request callback to accept an async function by LauraBeatris · Pull Request #5154 · clerk/javascript

X Title: fix(nextjs): Update `clerkMiddleware` request callback to accept an async function by LauraBeatris · Pull Request #5154 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - fix(nextjs): Update `clerkMiddleware` request callback to accept an async function by LauraBeatris · Pull Request #5154 · clerk/javascript

Open Graph Description: Description Portrait #5147 Context The ability to set clerkMiddleware options with a request callback was introduced here, to cover the cases of setting a satellite domain based on the incoming hos...

X Description: Description Portrait #5147 Context The ability to set clerkMiddleware options with a request callback was introduced here, to cover the cases of setting a satellite domain based on the incoming hos...

Opengraph URL: https://github.com/clerk/javascript/pull/5154

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:7a6129fc-deb1-9840-12da-6831338c215e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBB12:BC93F:282ABF:39C8D3:6AFB23B3
html-safe-nonceb9f27bc69d047b9220ddcb473ccbb371f568f39d65b0db7539e2f970913c629f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjEyOkJDOTNGOjI4MkFCRjozOUM4RDM6NkFGQjIzQjMiLCJ2aXNpdG9yX2lkIjoiNzEwMTY5MzcyNjY5MDA1OTE4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac31b9b861406592d45baeb989f035e7a0f9c2c595dc578bc5e5660bd19e411f58
hovercard-subject-tagpull_request:2334609111
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/clerk/javascript/5154/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3ff730ac7ec0c6cd864e77d4469985a0e8c3d1c8141c8ac2de3c32e716f07082/clerk/javascript/pull/5154
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3ff730ac7ec0c6cd864e77d4469985a0e8c3d1c8141c8ac2de3c32e716f07082/clerk/javascript/pull/5154
og:image:altDescription Portrait #5147 Context The ability to set clerkMiddleware options with a request callback was introduced here, to cover the cases of setting a satellite domain based on the incoming hos...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameLauraBeatris
hostnamegithub.com
expected-hostnamegithub.com
Nonef9219899e0d0ce0b87aeba2c640c955f83631457e5baff5df7a36ce599d2635b
turbo-cache-controlno-cache
go-importgithub.com/clerk/javascript git https://github.com/clerk/javascript.git
octolytics-dimension-user_id49538330
octolytics-dimension-user_loginclerk
octolytics-dimension-repository_id438331492
octolytics-dimension-repository_nwoclerk/javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id438331492
octolytics-dimension-repository_network_root_nwoclerk/javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd3b60f1fd9c5f10a3dcde41ae35682f53e85cee
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/5154#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F5154
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F5154
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=clerk%2Fjavascript
Reloadhttps://github.com/clerk/javascript/pull/5154
Reloadhttps://github.com/clerk/javascript/pull/5154
Reloadhttps://github.com/clerk/javascript/pull/5154
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues44 (44)https://github.com/clerk/javascript/issues
Pull requests112 (112)https://github.com/clerk/javascript/pulls
Discussionshttps://github.com/clerk/javascript/discussions
Actionshttps://github.com/clerk/javascript/actions
Security and quality6 (6)https://github.com/clerk/javascript/security
Insightshttps://github.com/clerk/javascript/pulse
https://github.com/clerk/javascript
LauraBeatrishttps://github.com/LauraBeatris
mainhttps://github.com/clerk/javascript/tree/main
laura/async-clerk-middlewarehttps://github.com/clerk/javascript/tree/laura/async-clerk-middleware
Conversationhttps://github.com/clerk/javascript/pull/5154
Commits5 (5)https://github.com/clerk/javascript/pull/5154/commits
Checkshttps://github.com/clerk/javascript/pull/5154/checks
Files changedhttps://github.com/clerk/javascript/pull/5154/files
fix(nextjs): Update clerkMiddleware request callback to accept an async functionhttps://github.com/clerk/javascript/pull/5154#top
LauraBeatrishttps://github.com/LauraBeatris
mainhttps://github.com/clerk/javascript/tree/main
laura/async-clerk-middlewarehttps://github.com/clerk/javascript/tree/laura/async-clerk-middleware
https://github.com/LauraBeatris
LauraBeatrishttps://github.com/LauraBeatris
Feb 13, 2025https://github.com/clerk/javascript/pull/5154#issue-2851955134
#5147https://github.com/clerk/javascript/pull/5147
herehttps://github.com/clerk/javascript/pull/5147
https://private-user-images.githubusercontent.com/48022589/413041180-1a6fd4ad-8e4f-40ff-9f4d-9c5ac683ba31.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTQ4NDM4NzIsIm5iZiI6MTc5NDg0MzU3MiwicGF0aCI6Ii80ODAyMjU4OS80MTMwNDExODAtMWE2ZmQ0YWQtOGU0Zi00MGZmLTlmNGQtOWM1YWM2ODNiYTMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTE2VDE1MzkzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTExY2ExMWU0ODAwZTlkNmU1MjFkMWNkZDZiZTE1YmEyNTc3ZDFiOTA1OGQzMjk0NjE3NTU1YmYwYTRkOGEzMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.zFxEHW1rA3LE3DtE01G36pUaywZ83zcjyY9TrEOp31E
JSDoc commentshttps://jsdoc.app/about-getting-started.html
Documentationhttps://github.com/clerk/clerk-docs
Please reload this pagehttps://github.com/clerk/javascript/pull/5154
February 13, 2025 16:30https://github.com/clerk/javascript/pull/5154#commits-pushed-d4f5b84
https://github.com/LauraBeatris
fix(nextjs): accept async callback for ClerkMiddlewareOptionsCallbackhttps://github.com/clerk/javascript/pull/5154/commits/d4f5b8416c79a35be8ba8d73ebfdb0a90bd09254
d4f5b84https://github.com/clerk/javascript/pull/5154/commits/d4f5b8416c79a35be8ba8d73ebfdb0a90bd09254
https://github.com/LauraBeatris
Add unit tests for async/sync callbackshttps://github.com/clerk/javascript/pull/5154/commits/31facf760474412ab049c59833817dc1af601ea8
31facf7https://github.com/clerk/javascript/pull/5154/commits/31facf760474412ab049c59833817dc1af601ea8
https://github.com/LauraBeatris
Update changesethttps://github.com/clerk/javascript/pull/5154/commits/fe8b23d2fa6c6ffe112c1596296b6167c8116cce
fe8b23dhttps://github.com/clerk/javascript/pull/5154/commits/fe8b23d2fa6c6ffe112c1596296b6167c8116cce
https://github.com/LauraBeatris
Update changesethttps://github.com/clerk/javascript/pull/5154/commits/eeb8df59578595e46caff2e8f5456d858b0297ff
eeb8df5https://github.com/clerk/javascript/pull/5154/commits/eeb8df59578595e46caff2e8f5456d858b0297ff
https://github.com/LauraBeatris
Fix typo on test caseshttps://github.com/clerk/javascript/pull/5154/commits/c8bf4b874f12763adce1fc9ce932d233c0151156
c8bf4b8https://github.com/clerk/javascript/pull/5154/commits/c8bf4b874f12763adce1fc9ce932d233c0151156
https://github.com/LauraBeatris
LauraBeatrishttps://github.com/LauraBeatris
February 13, 2025 19:46https://github.com/clerk/javascript/pull/5154#event-16301870189
https://github.com/LauraBeatris
LauraBeatrishttps://github.com/LauraBeatris
Feb 13, 2025https://github.com/clerk/javascript/pull/5154#event-16301870235
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Feb 13, 2025https://github.com/clerk/javascript/pull/5154#issuecomment-2657563729
c8bf4b8https://github.com/clerk/javascript/commit/c8bf4b874f12763adce1fc9ce932d233c0151156
Click here to learn what changesets arehttps://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md
Click here if you're a maintainer who wants to add another changeset to this PRhttps://github.com/clerk/javascript/new/laura/async-clerk-middleware?filename=.changeset/clever-bottles-matter.md&value=---%0A%22%40clerk%2Fnextjs%22%3A%20patch%0A---%0A%0Afix(nextjs)%3A%20Update%20%60clerkMiddleware%60%20request%20callback%20to%20accept%20an%20async%20function%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/5154
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
Feb 13, 2025https://github.com/clerk/javascript/pull/5154#issuecomment-2657563733
Vercel for Git ↗︎https://vercel.link/github-learn-more
Inspecthttps://vercel.com/clerk-production/clerk-js-sandbox/7xpQ1F56zsEFhX1o9qU2Xv3d9ki2
Visit Previewhttps://clerk-js-sandbox-git-laura-async-clerk-middleware.clerkstage.dev
Add feedbackhttps://vercel.live/open-feedback/clerk-js-sandbox-git-laura-async-clerk-middleware.clerkstage.dev?via=pr-comment-feedback-link
Please reload this pagehttps://github.com/clerk/javascript/pull/5154
https://github.com/LauraBeatris
LauraBeatrishttps://github.com/LauraBeatris
February 13, 2025 19:47https://github.com/clerk/javascript/pull/5154#event-16301872176
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
Feb 13, 2025https://github.com/clerk/javascript/pull/5154#event-16301874455
https://github.com/LauraBeatris
LauraBeatrishttps://github.com/LauraBeatris
Feb 13, 2025 https://github.com/clerk/javascript/pull/5154#ref-pullrequest-2851236981
fix(nextjs): Update clerkMiddleware request callback to accept an async function #5147 https://github.com/clerk/javascript/pull/5147
https://github.com/dstaley
dstaleyhttps://github.com/dstaley
Feb 13, 2025 https://github.com/clerk/javascript/pull/5154#pullrequestreview-2616082546
View reviewed changes https://github.com/clerk/javascript/pull/5154/files/c8bf4b874f12763adce1fc9ce932d233c0151156
https://github.com/LauraBeatris
LauraBeatrishttps://github.com/LauraBeatris
ccf4836https://github.com/clerk/javascript/commit/ccf483614db35cd7b8dc8fe0bb9fe7eb6dc4f269
Feb 13, 2025https://github.com/clerk/javascript/pull/5154#event-16302095181
https://github.com/LauraBeatris
LauraBeatrishttps://github.com/LauraBeatris
February 13, 2025 20:05https://github.com/clerk/javascript/pull/5154#event-16302095598
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Feb 13, 2025 https://github.com/clerk/javascript/pull/5154#ref-pullrequest-2851501243
ci(repo): Version packages #5149 https://github.com/clerk/javascript/pull/5149
Deployedhttps://clerk-js-sandbox-228y1pvl1.clerkstage.dev
vercel[bot]https://github.com/apps/vercel
View deployment https://clerk-js-sandbox-228y1pvl1.clerkstage.dev
https://github.co/hiddenchars
https://github.com/clerk/javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F5154
https://github.com/dstaley
dstaley https://github.com/dstaley
https://github.com/clerk/javascript/pull/5154/files/c8bf4b874f12763adce1fc9ce932d233c0151156
Please reload this pagehttps://github.com/clerk/javascript/pull/5154
https://github.com/LauraBeatris
LauraBeatris https://github.com/LauraBeatris
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
Please reload this pagehttps://github.com/clerk/javascript/pull/5154
https://github.com/LauraBeatris
https://github.com/dstaley
https://github.com/clerk-cookie
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.