René's URL Explorer Experiment


Title: feat(nextjs): Accept `redirectUrl` as option for `auth().protect()` by panteliselef · Pull Request #2329 · clerk/javascript · GitHub

Open Graph Title: feat(nextjs): Accept `redirectUrl` as option for `auth().protect()` by panteliselef · Pull Request #2329 · clerk/javascript

X Title: feat(nextjs): Accept `redirectUrl` as option for `auth().protect()` by panteliselef · Pull Request #2329 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - feat(nextjs): Accept `redirectUrl` as option for `auth().protect()` by panteliselef · Pull Request #2329 · clerk/javascript

Open Graph Description: Description This PR allows developers to call auth().protect() and pass to it a redirectUrl which can be used as the fallback instead of the standard 404 error that we currently throw. import { aut...

X Description: Description This PR allows developers to call auth().protect() and pass to it a redirectUrl which can be used as the fallback instead of the standard 404 error that we currently throw. import { aut...

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

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:8152eacb-d40a-bf69-b039-a703f3836b01
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id923A:1F1C:B7FFA9:F55112:6AFA6BBF
html-safe-nonce599fbb7bb891037b21dd965e4c634a5d2f0bf8b9e163dbd4036d87f47ad2ce17
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjNBOjFGMUM6QjdGRkE5OkY1NTExMjo2QUZBNkJCRiIsInZpc2l0b3JfaWQiOiIzMjc3MzQ1NjI1MzEzMjc0ODE1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5591a0bdeeb9249dea5af74c51421f220bbd65f89f9d414f1db61211f785d92f
hovercard-subject-tagpull_request:1641365667
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/2329/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c23e569e1f8005f9ce8ff00468d7ea6232f89dc3b63bf6e87e63b7c0df416eb7/clerk/javascript/pull/2329
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c23e569e1f8005f9ce8ff00468d7ea6232f89dc3b63bf6e87e63b7c0df416eb7/clerk/javascript/pull/2329
og:image:altDescription This PR allows developers to call auth().protect() and pass to it a redirectUrl which can be used as the fallback instead of the standard 404 error that we currently throw. import { aut...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepanteliselef
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
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
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/2329#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F2329
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%2F2329
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/2329
Reloadhttps://github.com/clerk/javascript/pull/2329
Reloadhttps://github.com/clerk/javascript/pull/2329
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues44 (44)https://github.com/clerk/javascript/issues
Pull requests109 (109)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
panteliselefhttps://github.com/panteliselef
mainhttps://github.com/clerk/javascript/tree/main
elef/core-1219-redirect-url-in-protecthttps://github.com/clerk/javascript/tree/elef/core-1219-redirect-url-in-protect
Conversationhttps://github.com/clerk/javascript/pull/2329
Commits7 (7)https://github.com/clerk/javascript/pull/2329/commits
Checkshttps://github.com/clerk/javascript/pull/2329/checks
Files changedhttps://github.com/clerk/javascript/pull/2329/files
feat(nextjs): Accept redirectUrl as option for auth().protect()https://github.com/clerk/javascript/pull/2329#top
panteliselefhttps://github.com/panteliselef
mainhttps://github.com/clerk/javascript/tree/main
elef/core-1219-redirect-url-in-protecthttps://github.com/clerk/javascript/tree/elef/core-1219-redirect-url-in-protect
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 12, 2023https://github.com/clerk/javascript/pull/2329#issue-2038501576
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
JSDoc commentshttps://jsdoc.app/about-getting-started.html
Documentationhttps://github.com/clerk/clerk-docs
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
https://github.com/panteliselef
feat(nextjs): Accept redirectUrl as option for auth().protect()https://github.com/clerk/javascript/pull/2329/commits/c4c8fb86ddb12a2cda76f26af7dc9c9cca92ba41
c4c8fb8https://github.com/clerk/javascript/pull/2329/commits/c4c8fb86ddb12a2cda76f26af7dc9c9cca92ba41
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
brkalowhttps://github.com/brkalow
nikosdouvlishttps://github.com/nikosdouvlis
December 12, 2023 20:27https://github.com/clerk/javascript/pull/2329#event-11228346637
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 12, 2023https://github.com/clerk/javascript/pull/2329#event-11228346679
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Dec 12, 2023https://github.com/clerk/javascript/pull/2329#issuecomment-1852754297
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
6ccbdffhttps://github.com/clerk/javascript/commit/6ccbdff715be7ca77ab6544cc9252fd2012447f8
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/elef/core-1219-redirect-url-in-protect?filename=.changeset/real-mirrors-judge.md&value=---%0A%22%40clerk%2Fnextjs%22%3A%20patch%0A---%0A%0Afeat(nextjs)%3A%20Accept%20%60redirectUrl%60%20as%20option%20for%20%60auth().protect()%60%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
Dec 12, 2023https://github.com/clerk/javascript/pull/2329#event-11228348563
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 12, 2023https://github.com/clerk/javascript/pull/2329#issuecomment-1852756545
@brkalowhttps://github.com/brkalow
@nikosdouvlishttps://github.com/nikosdouvlis
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
https://github.com/chanioxaris
chanioxarishttps://github.com/chanioxaris
Dec 12, 2023 https://github.com/clerk/javascript/pull/2329#pullrequestreview-1778398737
View reviewed changes https://github.com/clerk/javascript/pull/2329/files/30ee73291f4b36fbf3062019c217fe0bec321db2
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 12, 2023https://github.com/clerk/javascript/pull/2329#issuecomment-1852793005
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
https://github.com/brkalow
brkalowhttps://github.com/brkalow
Dec 12, 2023https://github.com/clerk/javascript/pull/2329#issuecomment-1852932411
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
@panteliselefhttps://github.com/panteliselef
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
https://github.com/panteliselef
feat(nextjs): Allow for redirectUrl to be the first parameterhttps://github.com/clerk/javascript/pull/2329/commits/ee5708a9c2260993fed4ddaf2f7faa72b2e07ec8
ee5708ahttps://github.com/clerk/javascript/pull/2329/commits/ee5708a9c2260993fed4ddaf2f7faa72b2e07ec8
https://github.com/dimkl
dimklhttps://github.com/dimkl
Dec 13, 2023 https://github.com/clerk/javascript/pull/2329#pullrequestreview-1779206209
View reviewed changes https://github.com/clerk/javascript/pull/2329/files/ee5708a9c2260993fed4ddaf2f7faa72b2e07ec8
panteliselefhttps://github.com/panteliselef
December 13, 2023 11:43https://github.com/clerk/javascript/pull/2329#commits-pushed-2b0f942
https://github.com/panteliselef
Revert "feat(nextjs): Allow for redirectUrl to be the first parameter"https://github.com/clerk/javascript/pull/2329/commits/2b0f9424f25c56e1f89e133d0ebabd1147f24d01
2b0f942https://github.com/clerk/javascript/pull/2329/commits/2b0f9424f25c56e1f89e133d0ebabd1147f24d01
ee5708ahttps://github.com/clerk/javascript/commit/ee5708a9c2260993fed4ddaf2f7faa72b2e07ec8
https://github.com/panteliselef
Merge branch 'main' into elef/core-1219-redirect-url-in-protecthttps://github.com/clerk/javascript/pull/2329/commits/30ee73291f4b36fbf3062019c217fe0bec321db2
30ee732https://github.com/clerk/javascript/pull/2329/commits/30ee73291f4b36fbf3062019c217fe0bec321db2
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
Dec 13, 2023 https://github.com/clerk/javascript/pull/2329#pullrequestreview-1779256811
View reviewed changes https://github.com/clerk/javascript/pull/2329/files/30ee73291f4b36fbf3062019c217fe0bec321db2
.changeset/thirty-chicken-divide.mdhttps://github.com/clerk/javascript/pull/2329/files/30ee73291f4b36fbf3062019c217fe0bec321db2#diff-d9e506e19afe43c0c30d0ca0629d8b80f9c8bc9e7da565aff1a18420dcc05043
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 13, 2023 https://github.com/clerk/javascript/pull/2329#ref-pullrequest-2039314732
feat(nextjs): Accept redirectUrl as option for auth().protect() #2329 #2333 https://github.com/clerk/javascript/pull/2333
panteliselefhttps://github.com/panteliselef
December 13, 2023 11:59https://github.com/clerk/javascript/pull/2329#commits-pushed-80b0c45
https://github.com/panteliselef
chore(nextjs): Update changesethttps://github.com/clerk/javascript/pull/2329/commits/80b0c451e0bc981b78d619fd85bf19641f97d460
80b0c45https://github.com/clerk/javascript/pull/2329/commits/80b0c451e0bc981b78d619fd85bf19641f97d460
https://github.com/panteliselef
Revert "Revert "feat(nextjs): Allow for redirectUrl to be the first p…https://github.com/clerk/javascript/pull/2329/commits/5efed207cc371f9aeaa67c0eb8c6bfa86d1be4b8
5efed20https://github.com/clerk/javascript/pull/2329/commits/5efed207cc371f9aeaa67c0eb8c6bfa86d1be4b8
2b0f942https://github.com/clerk/javascript/commit/2b0f9424f25c56e1f89e133d0ebabd1147f24d01
github-merge-queuehttps://github.com/apps/github-merge-queue
Dec 13, 2023 https://github.com/clerk/javascript/pull/2329#ref-commit-96b9bb5
https://github.com/panteliselef
feat(nextjs): Accepthttps://github.com/clerk/javascript/commit/96b9bb5c136ec61b210c37094157c4ec54fe60a9
redirectUrlhttps://github.com/clerk/javascript/commit/96b9bb5c136ec61b210c37094157c4ec54fe60a9
as option forhttps://github.com/clerk/javascript/commit/96b9bb5c136ec61b210c37094157c4ec54fe60a9
auth().protect()https://github.com/clerk/javascript/commit/96b9bb5c136ec61b210c37094157c4ec54fe60a9
#…https://github.com/clerk/javascript/pull/2329
96b9bb5https://github.com/clerk/javascript/commit/96b9bb5c136ec61b210c37094157c4ec54fe60a9
…2329https://github.com/clerk/javascript/pull/2329
#2333https://github.com/clerk/javascript/pull/2333
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 13, 2023https://github.com/clerk/javascript/pull/2329#event-11236511066
https://github.com/apps/github-merge-queue
github-merge-queuehttps://github.com/apps/github-merge-queue
Dec 13, 2023https://github.com/clerk/javascript/pull/2329#event-11236555789
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
https://github.com/brkalow
brkalowhttps://github.com/brkalow
Dec 13, 2023 https://github.com/clerk/javascript/pull/2329#pullrequestreview-1779811728
View reviewed changes https://github.com/clerk/javascript/pull/2329/files/6ccbdff715be7ca77ab6544cc9252fd2012447f8
brkalowhttps://github.com/brkalow
https://github.com/clerk/javascript/pull/2329#pullrequestreview-1779811728
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 13, 2023https://github.com/clerk/javascript/pull/2329#event-11240392412
https://github.com/apps/github-merge-queue
github-merge-queuehttps://github.com/apps/github-merge-queue
Dec 13, 2023https://github.com/clerk/javascript/pull/2329#event-11240438262
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
https://github.com/panteliselef
Merge branch 'main' into elef/core-1219-redirect-url-in-protecthttps://github.com/clerk/javascript/pull/2329/commits/6ccbdff715be7ca77ab6544cc9252fd2012447f8
6ccbdffhttps://github.com/clerk/javascript/pull/2329/commits/6ccbdff715be7ca77ab6544cc9252fd2012447f8
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 13, 2023https://github.com/clerk/javascript/pull/2329#event-11240662394
05bda49https://github.com/clerk/javascript/commit/05bda497c6cbb5b1055060cc840360a2c1aff067
Dec 13, 2023https://github.com/clerk/javascript/pull/2329#event-11240719631
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
December 13, 2023 21:03https://github.com/clerk/javascript/pull/2329#event-11240719751
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Dec 13, 2023 https://github.com/clerk/javascript/pull/2329#ref-pullrequest-2036221228
Version Packages (alpha-v5) #2308 https://github.com/clerk/javascript/pull/2308
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
Mar 13, 2024 https://github.com/clerk/javascript/pull/2329#ref-pullrequest-2183445819
fix(themes): Add tslib and @clerk/types as dependencies to @clerk/themes (#2665) #2987 https://github.com/clerk/javascript/pull/2987
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
Aug 2, 2024 https://github.com/clerk/javascript/pull/2329#ref-pullrequest-2444224984
chore(repo): Correct changeset #3883 https://github.com/clerk/javascript/pull/3883
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%2F2329
https://github.com/brkalow
brkalow https://github.com/brkalow
https://github.com/clerk/javascript/pull/2329/files/6ccbdff715be7ca77ab6544cc9252fd2012447f8
https://github.com/nikosdouvlis
nikosdouvlis https://github.com/nikosdouvlis
https://github.com/LekoArts
LekoArts https://github.com/LekoArts
https://github.com/clerk/javascript/pull/2329/files/30ee73291f4b36fbf3062019c217fe0bec321db2
https://github.com/dimkl
dimkl https://github.com/dimkl
https://github.com/clerk/javascript/pull/2329/files/ee5708a9c2260993fed4ddaf2f7faa72b2e07ec8
https://github.com/chanioxaris
chanioxaris https://github.com/chanioxaris
https://github.com/clerk/javascript/pull/2329/files/30ee73291f4b36fbf3062019c217fe0bec321db2
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
https://github.com/panteliselef
panteliselef https://github.com/panteliselef
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
Please reload this pagehttps://github.com/clerk/javascript/pull/2329
https://github.com/panteliselef
https://github.com/brkalow
https://github.com/dimkl
https://github.com/LekoArts
https://github.com/chanioxaris
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.