René's URL Explorer Experiment


Title: fix(backend): Prevent excessive handshakes by brkalow · Pull Request #6635 · clerk/javascript · GitHub

Open Graph Title: fix(backend): Prevent excessive handshakes by brkalow · Pull Request #6635 · clerk/javascript

X Title: fix(backend): Prevent excessive handshakes by brkalow · Pull Request #6635 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - fix(backend): Prevent excessive handshakes by brkalow · Pull Request #6635 · clerk/javascript

Open Graph Description: Description Prevent a handshake from triggering in development after a handshake is resolved with a __clerk_db_jwt parameter Reduce max-age of the redirect counter cookie to 2 to reduce false-pos...

X Description: Description Prevent a handshake from triggering in development after a handshake is resolved with a __clerk_db_jwt parameter Reduce max-age of the redirect counter cookie to 2 to reduce false-pos...

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

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:72675b78-e2b3-af35-52da-0d6d3fd3ddea
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCBD4:358701:59B9876:7661539:6AFABA65
html-safe-nonce82e2ed8abe9405299b55954f56e15a7382745b29b1f571eb55354d1d334f3fdb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkQ0OjM1ODcwMTo1OUI5ODc2Ojc2NjE1Mzk6NkFGQUJBNjUiLCJ2aXNpdG9yX2lkIjoiNTIzMDc4MTExNjU1MDE3MDYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca2eb7662bb2881c0ccc104a8661b842c65dd3efa2ccc405fa1852052643edc6e
hovercard-subject-tagpull_request:2773013287
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/6635/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/fd22a29b5abc42a92b88a12e36ff4c975734a48c37cc3c32fc66584f4c3994ca/clerk/javascript/pull/6635
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fd22a29b5abc42a92b88a12e36ff4c975734a48c37cc3c32fc66584f4c3994ca/clerk/javascript/pull/6635
og:image:altDescription Prevent a handshake from triggering in development after a handshake is resolved with a __clerk_db_jwt parameter Reduce max-age of the redirect counter cookie to 2 to reduce false-pos...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrkalow
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/6635#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F6635
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%2F6635
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/6635
Reloadhttps://github.com/clerk/javascript/pull/6635
Reloadhttps://github.com/clerk/javascript/pull/6635
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
brkalowhttps://github.com/brkalow
mainhttps://github.com/clerk/javascript/tree/main
brk.fix/handshake-optimizationshttps://github.com/clerk/javascript/tree/brk.fix/handshake-optimizations
Conversationhttps://github.com/clerk/javascript/pull/6635
Commits2 (2)https://github.com/clerk/javascript/pull/6635/commits
Checkshttps://github.com/clerk/javascript/pull/6635/checks
Files changedhttps://github.com/clerk/javascript/pull/6635/files
fix(backend): Prevent excessive handshakeshttps://github.com/clerk/javascript/pull/6635#top
brkalowhttps://github.com/brkalow
mainhttps://github.com/clerk/javascript/tree/main
brk.fix/handshake-optimizationshttps://github.com/clerk/javascript/tree/brk.fix/handshake-optimizations
https://github.com/brkalow
brkalowhttps://github.com/brkalow
Aug 25, 2025https://github.com/clerk/javascript/pull/6635#issue-3353203506
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
JSDoc commentshttps://jsdoc.app/about-getting-started.html
Documentationhttps://github.com/clerk/clerk-docs
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
https://github.com/brkalow
prevent handshake from triggering twice when a dev browser is present…https://github.com/clerk/javascript/pull/6635/commits/b73afbfc6c7df67b3d146b35a5651fd016366816
b73afbfhttps://github.com/clerk/javascript/pull/6635/commits/b73afbfc6c7df67b3d146b35a5651fd016366816
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
Aug 25, 2025https://github.com/clerk/javascript/pull/6635#issuecomment-3221732897
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
Vercel for GitHubhttps://vercel.link/github-learn-more
clerk-js-sandboxhttps://vercel.com/clerk-production/clerk-js-sandbox
https://camo.githubusercontent.com/833ba95642364322d56bfc6cc95692affdd7a5a6ca7b50fdcc44aa7e47372d3b/68747470733a2f2f76657263656c2e636f6d2f7374617469632f7374617475732f72656164792e737667
Readyhttps://vercel.com/clerk-production/clerk-js-sandbox/D2c4egKwkrLXzbkEVG7UAMTufWjU
Previewhttps://clerk-js-sandbox-git-brkfix-handshake-optimizations.clerkstage.dev
Commenthttps://vercel.live/open-feedback/clerk-js-sandbox-git-brkfix-handshake-optimizations.clerkstage.dev?via=pr-comment-feedback-link
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Aug 25, 2025https://github.com/clerk/javascript/pull/6635#issuecomment-3221732919
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
Integrationshttps://app.coderabbit.ai/integrations
CodeRabbithttps://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=clerk/javascript&utm_content=6635
support pagehttps://www.coderabbit.ai/contact-us/support
Status Pagehttps://status.coderabbit.ai
Documentationhttps://docs.coderabbit.ai
Discord Communityhttp://discord.gg/coderabbit
X/Twitterhttps://twitter.com/coderabbitai
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
backend https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Abackend
Aug 25, 2025https://github.com/clerk/javascript/pull/6635#event-19330345659
https://github.com/brkalow
brkalowhttps://github.com/brkalow
Aug 25, 2025 https://github.com/clerk/javascript/pull/6635#pullrequestreview-3153022548
View reviewed changes https://github.com/clerk/javascript/pull/6635/files/b73afbfc6c7df67b3d146b35a5651fd016366816
packages/backend/src/tokens/handshake.tshttps://github.com/clerk/javascript/pull/6635/files/b73afbfc6c7df67b3d146b35a5651fd016366816#diff-4523bed6e531516d8618886d5cd5f8122f07f45de19e08541b67a7417f8782a5
brkalowhttps://github.com/brkalow
Aug 25, 2025https://github.com/clerk/javascript/pull/6635#discussion_r2299132379
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
https://github.com/brkalow
brkalowhttps://github.com/brkalow
Aug 25, 2025 https://github.com/clerk/javascript/pull/6635#pullrequestreview-3153026931
View reviewed changes https://github.com/clerk/javascript/pull/6635/files/b73afbfc6c7df67b3d146b35a5651fd016366816
packages/backend/src/tokens/request.tshttps://github.com/clerk/javascript/pull/6635/files/b73afbfc6c7df67b3d146b35a5651fd016366816#diff-50844e9765ddaece7cd9885aa9a6b4556d93d6ccaf92ef2484399cec67a09405
brkalowhttps://github.com/brkalow
Aug 25, 2025https://github.com/clerk/javascript/pull/6635#discussion_r2299135566
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
https://github.com/apps/pkg-pr-new
pkg-pr-newhttps://github.com/apps/pkg-pr-new
Aug 25, 2025https://github.com/clerk/javascript/pull/6635#issuecomment-3221742555
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
Open in StackBlitzhttps://pkg.pr.new/template/1b879d50-515a-4b83-8589-4101c831c892
db961afhttps://github.com/clerk/javascript/runs/48856429345
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Aug 25, 2025 https://github.com/clerk/javascript/pull/6635#pullrequestreview-3153031588
View reviewed changes https://github.com/clerk/javascript/pull/6635/files/b73afbfc6c7df67b3d146b35a5651fd016366816
coderabbitaihttps://github.com/apps/coderabbitai
https://github.com/clerk/javascript/pull/6635#pullrequestreview-3153031588
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
35a8caehttps://github.com/clerk/javascript/commit/35a8caef166a17278d36b4268e8fa4174f3dccea
b73afbfhttps://github.com/clerk/javascript/commit/b73afbfc6c7df67b3d146b35a5651fd016366816
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
https://github.com/brkalow
fix testhttps://github.com/clerk/javascript/pull/6635/commits/db961aff6be624fbbb6bb21112c9b1b56056560f
db961afhttps://github.com/clerk/javascript/pull/6635/commits/db961aff6be624fbbb6bb21112c9b1b56056560f
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Aug 25, 2025https://github.com/clerk/javascript/pull/6635#issuecomment-3221783432
db961afhttps://github.com/clerk/javascript/commit/db961aff6be624fbbb6bb21112c9b1b56056560f
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/brk.fix/handshake-optimizations?filename=.changeset/thirty-plants-walk.md&value=---%0A%22%40clerk%2Fbackend%22%3A%20patch%0A---%0A%0Afix(backend)%3A%20Prevent%20excessive%20handshakes%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
integration https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aintegration
Aug 25, 2025https://github.com/clerk/javascript/pull/6635#event-19330618260
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-be2lzdr8w.clerkstage.dev
Previewhttps://clerk-js-sandbox-be2lzdr8w.clerkstage.dev
August 25, 2025 21:20https://github.com/clerk/javascript/pull/6635#event-19330626145
View deploymenthttps://clerk-js-sandbox-be2lzdr8w.clerkstage.dev
https://github.com/apps/coderabbitai
coderabbitaihttps://github.com/apps/coderabbitai
Aug 25, 2025 https://github.com/clerk/javascript/pull/6635#pullrequestreview-3153080689
View reviewed changes https://github.com/clerk/javascript/pull/6635/files/db961aff6be624fbbb6bb21112c9b1b56056560f
coderabbitaihttps://github.com/apps/coderabbitai
https://github.com/clerk/javascript/pull/6635#pullrequestreview-3153080689
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
b73afbfhttps://github.com/clerk/javascript/commit/b73afbfc6c7df67b3d146b35a5651fd016366816
db961afhttps://github.com/clerk/javascript/commit/db961aff6be624fbbb6bb21112c9b1b56056560f
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
https://github.com/brkalow
brkalowhttps://github.com/brkalow
August 25, 2025 21:27https://github.com/clerk/javascript/pull/6635#event-19330705074
https://github.com/tmilewski
tmilewskihttps://github.com/tmilewski
Aug 25, 2025 https://github.com/clerk/javascript/pull/6635#pullrequestreview-3153146697
View reviewed changes https://github.com/clerk/javascript/pull/6635/files/db961aff6be624fbbb6bb21112c9b1b56056560f
https://github.com/brkalow
brkalowhttps://github.com/brkalow
9036427https://github.com/clerk/javascript/commit/903642793ae205c5e5d9e9d22ff3e95665641871
Aug 26, 2025https://github.com/clerk/javascript/pull/6635#event-19333442289
https://github.com/brkalow
brkalowhttps://github.com/brkalow
August 26, 2025 01:49https://github.com/clerk/javascript/pull/6635#event-19333442479
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
Aug 26, 2025 https://github.com/clerk/javascript/pull/6635#ref-pullrequest-3342762383
ci(repo): Version packages #6602 https://github.com/clerk/javascript/pull/6602
https://github.com/nikosdouvlis
nikosdouvlishttps://github.com/nikosdouvlis
Aug 26, 2025 https://github.com/clerk/javascript/pull/6635#pullrequestreview-3154540066
View reviewed changes https://github.com/clerk/javascript/pull/6635/files/db961aff6be624fbbb6bb21112c9b1b56056560f
packages/backend/src/tokens/handshake.tshttps://github.com/clerk/javascript/pull/6635/files/db961aff6be624fbbb6bb21112c9b1b56056560f#diff-4523bed6e531516d8618886d5cd5f8122f07f45de19e08541b67a7417f8782a5
nikosdouvlishttps://github.com/nikosdouvlis
Aug 26, 2025https://github.com/clerk/javascript/pull/6635#discussion_r2300219470
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
jacekradkohttps://github.com/jacekradko
Aug 26, 2025 https://github.com/clerk/javascript/pull/6635#ref-commit-391759c
https://github.com/brkalow
fix(backend): Prevent excessive handshakes (https://github.com/clerk/javascript/commit/391759c0e94d78c06487e3b3318546ec48260471
#6635https://github.com/clerk/javascript/pull/6635
)https://github.com/clerk/javascript/commit/391759c0e94d78c06487e3b3318546ec48260471
391759chttps://github.com/clerk/javascript/commit/391759c0e94d78c06487e3b3318546ec48260471
Deployedhttps://clerk-js-sandbox-be2lzdr8w.clerkstage.dev
vercel[bot]https://github.com/apps/vercel
View deployment https://clerk-js-sandbox-be2lzdr8w.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%2F6635
https://github.com/nikosdouvlis
nikosdouvlis https://github.com/nikosdouvlis
https://github.com/clerk/javascript/pull/6635/files/db961aff6be624fbbb6bb21112c9b1b56056560f
https://github.com/apps/coderabbitai
coderabbitai[bot] https://github.com/apps/coderabbitai
https://github.com/clerk/javascript/pull/6635/files/db961aff6be624fbbb6bb21112c9b1b56056560f
https://github.com/tmilewski
tmilewski https://github.com/tmilewski
https://github.com/clerk/javascript/pull/6635/files/db961aff6be624fbbb6bb21112c9b1b56056560f
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
backend https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Abackend
integration https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aintegration
Please reload this pagehttps://github.com/clerk/javascript/pull/6635
https://github.com/brkalow
https://github.com/tmilewski
https://github.com/nikosdouvlis
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.