René's URL Explorer Experiment


Title: v5: NextJS improvements by nikosdouvlis · Pull Request #2691 · clerk/javascript · GitHub

Open Graph Title: v5: NextJS improvements by nikosdouvlis · Pull Request #2691 · clerk/javascript

X Title: v5: NextJS improvements by nikosdouvlis · Pull Request #2691 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - v5: NextJS improvements by nikosdouvlis · Pull Request #2691 · clerk/javascript

Open Graph Description: Description The auth().redirectToSignIn() helper no longer needs to be explicitly returned when called within the middleware. The following examples are now equivalent: // Before export default cle...

X Description: Description The auth().redirectToSignIn() helper no longer needs to be explicitly returned when called within the middleware. The following examples are now equivalent: // Before export default cle...

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

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:7c7a5aee-149a-23a3-e544-55b5cb2a27c0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9866:268853:5D01E3F:7B503FD:6AFACDA3
html-safe-nonce0cc07b56fc93193da2842e65ded5775e9d41bb3cdf501d658929d2ab1022b5b1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODY2OjI2ODg1Mzo1RDAxRTNGOjdCNTAzRkQ6NkFGQUNEQTMiLCJ2aXNpdG9yX2lkIjoiNTY2NjAzMTM0MjQxNjc0Mzg0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac17878b4b0f76ed4f61697f4d2c91267109aa61f5d2468c869b4060564016c53d
hovercard-subject-tagpull_request:1702900953
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/2691/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/716a739f3b74f4372eca576141c95bf0f3047dce2352da119dbbf54e521e5a5a/clerk/javascript/pull/2691
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/716a739f3b74f4372eca576141c95bf0f3047dce2352da119dbbf54e521e5a5a/clerk/javascript/pull/2691
og:image:altDescription The auth().redirectToSignIn() helper no longer needs to be explicitly returned when called within the middleware. The following examples are now equivalent: // Before export default cle...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenikosdouvlis
hostnamegithub.com
expected-hostnamegithub.com
Noneaa0433de2f392a016f21549c10194a963f65b58eb02faea3916953819b623290
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
releasebe9dc02df8087c7449fb60a416e138c34108ed94
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/2691#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F2691
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%2F2691
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/2691
Reloadhttps://github.com/clerk/javascript/pull/2691
Reloadhttps://github.com/clerk/javascript/pull/2691
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
nikosdouvlishttps://github.com/nikosdouvlis
mainhttps://github.com/clerk/javascript/tree/main
nikos/sdk-1247-next-improvementshttps://github.com/clerk/javascript/tree/nikos/sdk-1247-next-improvements
Conversationhttps://github.com/clerk/javascript/pull/2691
Commits2 (2)https://github.com/clerk/javascript/pull/2691/commits
Checkshttps://github.com/clerk/javascript/pull/2691/checks
Files changedhttps://github.com/clerk/javascript/pull/2691/files
v5: NextJS improvementshttps://github.com/clerk/javascript/pull/2691#top
nikosdouvlishttps://github.com/nikosdouvlis
mainhttps://github.com/clerk/javascript/tree/main
nikos/sdk-1247-next-improvementshttps://github.com/clerk/javascript/tree/nikos/sdk-1247-next-improvements
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
Jan 30, 2024https://github.com/clerk/javascript/pull/2691#issue-2108775894
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
JSDoc commentshttps://jsdoc.app/about-getting-started.html
Documentationhttps://github.com/clerk/clerk-docs
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Jan 30, 2024https://github.com/clerk/javascript/pull/2691#issuecomment-1917892499
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
4cf05achttps://github.com/clerk/javascript/commit/4cf05ac6da32cc535b9c6d2539fa497affb8a6bd
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/nikos/sdk-1247-next-improvements?filename=.changeset/brown-grapes-grow.md&value=---%0A%22%40clerk%2Fbackend%22%3A%20patch%0A%22%40clerk%2Ffastify%22%3A%20patch%0A%22%40clerk%2Fnextjs%22%3A%20patch%0A---%0A%0Av5%3A%20NextJS%20improvements%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
backend https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Abackend
Jan 30, 2024https://github.com/clerk/javascript/pull/2691#event-11647529233
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
panteliselefhttps://github.com/panteliselef
January 31, 2024 11:20https://github.com/clerk/javascript/pull/2691#event-11654395934
https://github.com/nikosdouvlis
feat(nextjs): Make auth().redirectToSignIn() in middleware work witho…https://github.com/clerk/javascript/pull/2691/commits/74a3e52a5367f30700059497919b9e121821e0c3
74a3e52https://github.com/clerk/javascript/pull/2691/commits/74a3e52a5367f30700059497919b9e121821e0c3
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
force-pushedhttps://github.com/clerk/javascript/compare/bfc06d1a29ce191d998604323ec775080c28df02..8f74ed3e3ce571c08a579b9b01a1b3ac00cb4ebd
bfc06d1https://github.com/clerk/javascript/commit/bfc06d1a29ce191d998604323ec775080c28df02
8f74ed3https://github.com/clerk/javascript/commit/8f74ed3e3ce571c08a579b9b01a1b3ac00cb4ebd
Compare https://github.com/clerk/javascript/compare/bfc06d1a29ce191d998604323ec775080c28df02..8f74ed3e3ce571c08a579b9b01a1b3ac00cb4ebd
February 1, 2024 19:36https://github.com/clerk/javascript/pull/2691#event-11674942327
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Feb 1, 2024 https://github.com/clerk/javascript/pull/2691#pullrequestreview-1857569650
View reviewed changes https://github.com/clerk/javascript/pull/2691/files
panteliselefhttps://github.com/panteliselef
https://github.com/clerk/javascript/pull/2691#pullrequestreview-1857569650
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
packages/nextjs/src/server/clerkMiddleware.tshttps://github.com/clerk/javascript/pull/2691/files#diff-f6d762a2890e99ee53fbdeb979f234d6dd5bcd2299c5925bee9859b14b205d71
panteliselefhttps://github.com/panteliselef
Feb 1, 2024https://github.com/clerk/javascript/pull/2691#discussion_r1475111918
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
nikosdouvlishttps://github.com/nikosdouvlis
Feb 1, 2024https://github.com/clerk/javascript/pull/2691#discussion_r1475123779
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
Feb 1, 2024https://github.com/clerk/javascript/pull/2691#issuecomment-1922209234
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
force-pushedhttps://github.com/clerk/javascript/compare/c97c27621d6500d84807b89404b0fd76f936e2b8..bcab88260d68dcbb0cef7b15d348dec97135e4c5
c97c276https://github.com/clerk/javascript/commit/c97c27621d6500d84807b89404b0fd76f936e2b8
bcab882https://github.com/clerk/javascript/commit/bcab88260d68dcbb0cef7b15d348dec97135e4c5
Compare https://github.com/clerk/javascript/compare/c97c27621d6500d84807b89404b0fd76f936e2b8..bcab88260d68dcbb0cef7b15d348dec97135e4c5
February 1, 2024 23:06https://github.com/clerk/javascript/pull/2691#event-11676960042
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
fastify https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Afastify
Feb 1, 2024https://github.com/clerk/javascript/pull/2691#event-11676961831
https://github.com/dimkl
dimklhttps://github.com/dimkl
Feb 2, 2024 https://github.com/clerk/javascript/pull/2691#pullrequestreview-1858686406
View reviewed changes https://github.com/clerk/javascript/pull/2691/files
packages/backend/src/createRedirect.tshttps://github.com/clerk/javascript/pull/2691/files#diff-0d227b11a8899d21d6be23ec670a21d8310955ae282ae3596ae50a91b7b2bb97
dimklhttps://github.com/dimkl
Feb 2, 2024https://github.com/clerk/javascript/pull/2691#discussion_r1475741024
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
https://github.com/dimkl
dimklhttps://github.com/dimkl
Feb 2, 2024 https://github.com/clerk/javascript/pull/2691#pullrequestreview-1858690663
View reviewed changes https://github.com/clerk/javascript/pull/2691/files
packages/nextjs/src/app-router/server/auth.tshttps://github.com/clerk/javascript/pull/2691/files#diff-64d9d35e480429c82b5cb01e88b8444eb675c1e22f83c872d0780ba4dcd61a81
dimklhttps://github.com/dimkl
Feb 2, 2024https://github.com/clerk/javascript/pull/2691#discussion_r1475743777
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
nikosdouvlishttps://github.com/nikosdouvlis
Feb 2, 2024https://github.com/clerk/javascript/pull/2691#discussion_r1475761321
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
@dimklhttps://github.com/dimkl
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
force-pushedhttps://github.com/clerk/javascript/compare/bcab88260d68dcbb0cef7b15d348dec97135e4c5..1fbd905cd479b02c6dc2e96c053743fb29681ccb
bcab882https://github.com/clerk/javascript/commit/bcab88260d68dcbb0cef7b15d348dec97135e4c5
1fbd905https://github.com/clerk/javascript/commit/1fbd905cd479b02c6dc2e96c053743fb29681ccb
Compare https://github.com/clerk/javascript/compare/bcab88260d68dcbb0cef7b15d348dec97135e4c5..1fbd905cd479b02c6dc2e96c053743fb29681ccb
February 2, 2024 10:46https://github.com/clerk/javascript/pull/2691#event-11682478050
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
integration https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aintegration
Feb 2, 2024https://github.com/clerk/javascript/pull/2691#event-11682479884
https://github.com/nikosdouvlis
feat(nextjs): Make auth().protect() respect returnBackUrl by using re…https://github.com/clerk/javascript/pull/2691/commits/4cf05ac6da32cc535b9c6d2539fa497affb8a6bd
4cf05achttps://github.com/clerk/javascript/pull/2691/commits/4cf05ac6da32cc535b9c6d2539fa497affb8a6bd
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
force-pushedhttps://github.com/clerk/javascript/compare/1fbd905cd479b02c6dc2e96c053743fb29681ccb..4cf05ac6da32cc535b9c6d2539fa497affb8a6bd
1fbd905https://github.com/clerk/javascript/commit/1fbd905cd479b02c6dc2e96c053743fb29681ccb
4cf05achttps://github.com/clerk/javascript/commit/4cf05ac6da32cc535b9c6d2539fa497affb8a6bd
Compare https://github.com/clerk/javascript/compare/1fbd905cd479b02c6dc2e96c053743fb29681ccb..4cf05ac6da32cc535b9c6d2539fa497affb8a6bd
February 2, 2024 10:55https://github.com/clerk/javascript/pull/2691#event-11682571343
https://github.com/anagstef
anagstefhttps://github.com/anagstef
Feb 2, 2024 https://github.com/clerk/javascript/pull/2691#pullrequestreview-1859133121
View reviewed changes https://github.com/clerk/javascript/pull/2691/files/4cf05ac6da32cc535b9c6d2539fa497affb8a6bd
anagstefhttps://github.com/anagstef
https://github.com/clerk/javascript/pull/2691#pullrequestreview-1859133121
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
7b200afhttps://github.com/clerk/javascript/commit/7b200af4908839ea661ddf2a76811057b545cafc
Feb 2, 2024https://github.com/clerk/javascript/pull/2691#event-11683528607
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
February 2, 2024 12:30https://github.com/clerk/javascript/pull/2691#event-11683528740
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Feb 2, 2024 https://github.com/clerk/javascript/pull/2691#ref-pullrequest-2100071228
Version Packages (beta-v5) #2663 https://github.com/clerk/javascript/pull/2663
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Jun 12, 2026 https://github.com/clerk/javascript/pull/2691#ref-pullrequest-4652005616
Implement voice assistant functionalities with vapi Tieson18/bookified#3 https://github.com/Tieson18/bookified/pull/3
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Aug 5, 2026 https://github.com/clerk/javascript/pull/2691#ref-pullrequest-5063444692
feat: add protected application shell DoMinhHHung/BridgeWorksApps#2 https://github.com/DoMinhHHung/BridgeWorksApps/pull/2
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%2F2691
https://github.com/dimkl
dimkl https://github.com/dimkl
https://github.com/clerk/javascript/pull/2691/files/bcab88260d68dcbb0cef7b15d348dec97135e4c5
https://github.com/panteliselef
panteliselef https://github.com/panteliselef
https://github.com/clerk/javascript/pull/2691/files/8f74ed3e3ce571c08a579b9b01a1b3ac00cb4ebd
https://github.com/anagstef
anagstef https://github.com/anagstef
https://github.com/clerk/javascript/pull/2691/files/4cf05ac6da32cc535b9c6d2539fa497affb8a6bd
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
backend https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Abackend
fastify https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Afastify
integration https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aintegration
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
Please reload this pagehttps://github.com/clerk/javascript/pull/2691
https://github.com/nikosdouvlis
https://github.com/dimkl
https://github.com/anagstef
https://github.com/panteliselef
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.