René's URL Explorer Experiment


Title: feat(nextjs,shared,backend,clerk-react): Introduce Protect for authorization (#2170) by panteliselef · Pull Request #2309 · clerk/javascript · GitHub

Open Graph Title: feat(nextjs,shared,backend,clerk-react): Introduce Protect for authorization (#2170) by panteliselef · Pull Request #2309 · clerk/javascript

X Title: feat(nextjs,shared,backend,clerk-react): Introduce Protect for authorization (#2170) by panteliselef · Pull Request #2309 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - feat(nextjs,shared,backend,clerk-react): Introduce Protect for authorization (#2170) by panteliselef · Pull Request #2309 · clerk/javascript

Open Graph Description: Description Backport of #2170. Please take a second to review and not approve it instantly Since #2170 was merged, we have pushed a few changes that address issues from that PR. All of them are inc...

X Description: Description Backport of #2170. Please take a second to review and not approve it instantly Since #2170 was merged, we have pushed a few changes that address issues from that PR. All of them are inc...

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

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:30312ba6-9529-7caf-8362-ac2579080b38
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBE8A:35FB3F:1DAC19B:297C273:6AFA6E51
html-safe-nonce4a7ee8ea50f035b1fa9f23ab186d83a509f2cbe59f5184b24e28c610821327c5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRThBOjM1RkIzRjoxREFDMTlCOjI5N0MyNzM6NkFGQTZFNTEiLCJ2aXNpdG9yX2lkIjoiNzM2OTgxNDA1MjM0OTU3MDY0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdc3f4ceaf818fe91f4a3c83c4434052eb67dd05e9f9669a02c111c02bbeadbc9
hovercard-subject-tagpull_request:1639380508
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/2309/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/4e30a8e9245ad88a18b2f25679c5fd46414913f1d7f559b1d5e990844640d829/clerk/javascript/pull/2309
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4e30a8e9245ad88a18b2f25679c5fd46414913f1d7f559b1d5e990844640d829/clerk/javascript/pull/2309
og:image:altDescription Backport of #2170. Please take a second to review and not approve it instantly Since #2170 was merged, we have pushed a few changes that address issues from that PR. All of them are inc...
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-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/2309#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F2309
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%2F2309
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/2309
Reloadhttps://github.com/clerk/javascript/pull/2309
Reloadhttps://github.com/clerk/javascript/pull/2309
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
release/v4https://github.com/clerk/javascript/tree/release/v4
backport-release/v4-2170https://github.com/clerk/javascript/tree/backport-release/v4-2170
Conversationhttps://github.com/clerk/javascript/pull/2309
Commits5 (5)https://github.com/clerk/javascript/pull/2309/commits
Checkshttps://github.com/clerk/javascript/pull/2309/checks
Files changedhttps://github.com/clerk/javascript/pull/2309/files
feat(nextjs,shared,backend,clerk-react): Introduce Protect for authorization (#2170)https://github.com/clerk/javascript/pull/2309#top
panteliselefhttps://github.com/panteliselef
release/v4https://github.com/clerk/javascript/tree/release/v4
backport-release/v4-2170https://github.com/clerk/javascript/tree/backport-release/v4-2170
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#issue-2036278886
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
#2170https://github.com/clerk/javascript/pull/2170
#2170https://github.com/clerk/javascript/pull/2170
fix(types): Update MembershipRole and OrganizationPermissionKey to not resolve to anyhttps://github.com/clerk/javascript/pull/2318
fix(types,nextjs): Improve generated param type of auth().protect()https://github.com/clerk/javascript/pull/2309
fix(types): Typescript v5 cannot infer custom role types correctlyhttps://github.com/clerk/javascript/pull/2314
Avoid using ts-expect-error as it may fail for hosting apps https://github.com/clerk/javascript/pull/2313
fix(clerk-react): Using wrong OrganizationCustomPermission typehttps://github.com/clerk/javascript/pull/2310
JSDoc commentshttps://jsdoc.app/about-getting-started.html
Documentationhttps://github.com/clerk/clerk-docs
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#issuecomment-1850643495
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
696bd7chttps://github.com/clerk/javascript/commit/696bd7c8c8ba3b2e8f5dd779d33948c8e3709906
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/backport-release/v4-2170?filename=.changeset/five-cows-type.md&value=---%0A%22%40clerk%2Fbackend%22%3A%20patch%0A%22%40clerk%2Fchrome-extension%22%3A%20patch%0A%22%40clerk%2Fclerk-js%22%3A%20patch%0A%22%40clerk%2Fnextjs%22%3A%20patch%0A%22%40clerk%2Fclerk-react%22%3A%20patch%0A%22%40clerk%2Ftypes%22%3A%20patch%0A---%0A%0Afeat(nextjs%2Cshared%2Cbackend%2Cclerk-react)%3A%20Introduce%20Protect%20for%20authorization%20(%232170)%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
types https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Atypes
clerk-js https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aclerk-js
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
react https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Areact
backend https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Abackend
chrome-extension https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Achrome-extension
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#event-11214214201
https://github.com/panteliselef
feat(nextjs,shared,backend,clerk-react): Introduce Protect for author…https://github.com/clerk/javascript/pull/2309/commits/9199b6ae5ba6687218167c736cd28a1b072c8372
9199b6ahttps://github.com/clerk/javascript/pull/2309/commits/9199b6ae5ba6687218167c736cd28a1b072c8372
#2170https://github.com/clerk/javascript/pull/2170
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
force-pushedhttps://github.com/clerk/javascript/compare/508071bc3f610f2d15205a6bef7a2d29200d5bb0..9199b6ae5ba6687218167c736cd28a1b072c8372
508071bhttps://github.com/clerk/javascript/commit/508071bc3f610f2d15205a6bef7a2d29200d5bb0
9199b6ahttps://github.com/clerk/javascript/commit/9199b6ae5ba6687218167c736cd28a1b072c8372
Compare https://github.com/clerk/javascript/compare/508071bc3f610f2d15205a6bef7a2d29200d5bb0..9199b6ae5ba6687218167c736cd28a1b072c8372
December 11, 2023 18:48https://github.com/clerk/javascript/pull/2309#event-11214524440
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#event-11214538601
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
cherry https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Acherry
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#event-11214539539
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#issuecomment-1850694932
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#issuecomment-1850697998
@panteliselefhttps://github.com/panteliselef
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
December 11, 2023 19:11https://github.com/clerk/javascript/pull/2309#event-11214775936
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
code ownerhttps://github.com/clerk/javascript/blob/7657cd32c4985b8c21627f89de7904def1400d41/CODEOWNERS#L1
December 11, 2023 19:11https://github.com/clerk/javascript/pull/2309#event-11214776015
https://github.com/panteliselef
fix(types): Avoid using ts-expect-error as it may fail for hosting …https://github.com/clerk/javascript/pull/2309/commits/7515d9586bc4ff5c4430f954f30caf4452d95e7b
7515d95https://github.com/clerk/javascript/pull/2309/commits/7515d9586bc4ff5c4430f954f30caf4452d95e7b
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#issuecomment-1850792915
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#issuecomment-1850796368
@panteliselefhttps://github.com/panteliselef
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/panteliselef
fix(types,nextjs): Improve complex typehttps://github.com/clerk/javascript/pull/2309/commits/f97a372f7ef37d7544bb1975441d73a92163273d
f97a372https://github.com/clerk/javascript/pull/2309/commits/f97a372f7ef37d7544bb1975441d73a92163273d
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#issuecomment-1850830706
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#issuecomment-1850833540
@panteliselefhttps://github.com/panteliselef
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/panteliselef
fix(types): Typescript v5 cannot infer types correctlyhttps://github.com/clerk/javascript/pull/2309/commits/1c96a9f5829499c2d324d0dc1d194a8f7bdfb07f
1c96a9fhttps://github.com/clerk/javascript/pull/2309/commits/1c96a9f5829499c2d324d0dc1d194a8f7bdfb07f
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#issuecomment-1851060875
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Dec 11, 2023https://github.com/clerk/javascript/pull/2309#issuecomment-1851062597
@panteliselefhttps://github.com/panteliselef
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/panteliselef
fix(types): Update MembershipRole and OrganizationPermissionKey to no…https://github.com/clerk/javascript/pull/2309/commits/696bd7c8c8ba3b2e8f5dd779d33948c8e3709906
696bd7chttps://github.com/clerk/javascript/pull/2309/commits/696bd7c8c8ba3b2e8f5dd779d33948c8e3709906
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 12, 2023https://github.com/clerk/javascript/pull/2309#issuecomment-1852621852
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Dec 12, 2023https://github.com/clerk/javascript/pull/2309#issuecomment-1852624559
@panteliselefhttps://github.com/panteliselef
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/SokratisVidros
SokratisVidroshttps://github.com/SokratisVidros
Dec 12, 2023 https://github.com/clerk/javascript/pull/2309#pullrequestreview-1778299809
View reviewed changes https://github.com/clerk/javascript/pull/2309/files/696bd7c8c8ba3b2e8f5dd779d33948c8e3709906
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
Dec 12, 2023https://github.com/clerk/javascript/pull/2309#event-11228518506
2dc93d4https://github.com/clerk/javascript/commit/2dc93d4d8dcdc5f83c21576400ae6d6f43705847
Dec 12, 2023https://github.com/clerk/javascript/pull/2309#event-11228561217
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
December 12, 2023 20:55https://github.com/clerk/javascript/pull/2309#event-11228561399
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Dec 12, 2023 https://github.com/clerk/javascript/pull/2309#ref-pullrequest-2038539799
Version Packages - V4 #2330 https://github.com/clerk/javascript/pull/2330
https://github.com/LekoArts
LekoArtshttps://github.com/LekoArts
Mar 13, 2024 https://github.com/clerk/javascript/pull/2309#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/2309#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%2F2309
https://github.com/SokratisVidros
SokratisVidros https://github.com/SokratisVidros
https://github.com/clerk/javascript/pull/2309/files/696bd7c8c8ba3b2e8f5dd779d33948c8e3709906
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/panteliselef
panteliselef https://github.com/panteliselef
backend https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Abackend
cherry https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Acherry
chrome-extension https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Achrome-extension
clerk-js https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aclerk-js
nextjs https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Anextjs
react https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Areact
types https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Atypes
Please reload this pagehttps://github.com/clerk/javascript/pull/2309
https://github.com/panteliselef
https://github.com/clerk-cookie
https://github.com/SokratisVidros
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.