René's URL Explorer Experiment


Title: fix(clerk-js): Ensure setActive does not emit token before onBeforeSetActive by brkalow · Pull Request #5986 · clerk/javascript · GitHub

Open Graph Title: fix(clerk-js): Ensure setActive does not emit token before onBeforeSetActive by brkalow · Pull Request #5986 · clerk/javascript

X Title: fix(clerk-js): Ensure setActive does not emit token before onBeforeSetActive by brkalow · Pull Request #5986 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - fix(clerk-js): Ensure setActive does not emit token before onBeforeSetActive by brkalow · Pull Request #5986 · clerk/javascript

Open Graph Description: Description Currently, we are updating the session token with the new session's token during a session switch, causing the invalidate cache call in onBeforeSetActive() to use the new token. Co...

X Description: Description Currently, we are updating the session token with the new session's token during a session switch, causing the invalidate cache call in onBeforeSetActive() to use the new token...

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

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:f1eef47a-d6fe-23d9-bcbe-3eb6607e406c
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idED78:52BC4:2C9157F:3EFBDE6:6AFAD644
html-safe-nonce8d0db1f63fa77ff0c4be1f36c2519cfc3c4fc4b22b935bb8b2399b3cd740a9a2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDc4OjUyQkM0OjJDOTE1N0Y6M0VGQkRFNjo2QUZBRDY0NCIsInZpc2l0b3JfaWQiOiI1Mzg0OTQ4NDA2MDI1OTAxNjM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac940585e4e72a4062e70b1d586f80e1ec14876b3ade4a30281a1eef57b0122a04
hovercard-subject-tagpull_request:2537937984
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/5986/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/96b2c660a5a8f5077b10496d1314f2b0f05ab34ef9ca3eb841395056e08651bb/clerk/javascript/pull/5986
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/96b2c660a5a8f5077b10496d1314f2b0f05ab34ef9ca3eb841395056e08651bb/clerk/javascript/pull/5986
og:image:altDescription Currently, we are updating the session token with the new session's token during a session switch, causing the invalidate cache call in onBeforeSetActive() to use the new token. Co...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrkalow
hostnamegithub.com
expected-hostnamegithub.com
None02f4c00e74911c7cd779fc232c3130cee49eb39fd0ed4bfe3eea3b82c7c18084
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
release33c41e9d150e44415272934d676dc63c57d89c3b
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/clerk/javascript/pull/5986#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F5986
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%2F5986
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/5986
Reloadhttps://github.com/clerk/javascript/pull/5986
Reloadhttps://github.com/clerk/javascript/pull/5986
clerkhttps://github.com/clerk
javascripthttps://github.com/clerk/javascript
Codehttps://github.com/clerk/javascript
Issues44 (44)https://github.com/clerk/javascript/issues
Pull requests113 (113)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/set-active-emit-previous-tokenhttps://github.com/clerk/javascript/tree/brk.fix/set-active-emit-previous-token
Conversationhttps://github.com/clerk/javascript/pull/5986
Commits4 (4)https://github.com/clerk/javascript/pull/5986/commits
Checkshttps://github.com/clerk/javascript/pull/5986/checks
Files changedhttps://github.com/clerk/javascript/pull/5986/files
fix(clerk-js): Ensure setActive does not emit token before onBeforeSetActivehttps://github.com/clerk/javascript/pull/5986#top
brkalowhttps://github.com/brkalow
mainhttps://github.com/clerk/javascript/tree/main
brk.fix/set-active-emit-previous-tokenhttps://github.com/clerk/javascript/tree/brk.fix/set-active-emit-previous-token
https://github.com/brkalow
brkalowhttps://github.com/brkalow
May 22, 2025https://github.com/clerk/javascript/pull/5986#issue-3084200867
JSDoc commentshttps://jsdoc.app/about-getting-started.html
Documentationhttps://github.com/clerk/clerk-docs
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
brkalowhttps://github.com/brkalow
May 22, 2025 13:14https://github.com/clerk/javascript/pull/5986#commits-pushed-54246ed
https://github.com/brkalow
ensure setActive emits the previous token before onBeforeSetActive() …https://github.com/clerk/javascript/pull/5986/commits/54246ed94c670f30165cdb933ab6cdc7df7fa3f0
54246edhttps://github.com/clerk/javascript/pull/5986/commits/54246ed94c670f30165cdb933ab6cdc7df7fa3f0
https://github.com/brkalow
adds changesethttps://github.com/clerk/javascript/pull/5986/commits/d9831b08acfe0f5d6983bc61dabf87e91b35da6a
d9831b0https://github.com/clerk/javascript/pull/5986/commits/d9831b08acfe0f5d6983bc61dabf87e91b35da6a
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
May 22, 2025https://github.com/clerk/javascript/pull/5986#issuecomment-2902158259
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
8f3db30https://github.com/clerk/javascript/commit/8f3db30cbe540b654c2b9a34222a94dcaffc3c77
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/set-active-emit-previous-token?filename=.changeset/thick-rockets-tickle.md&value=---%0A%22%40clerk%2Fclerk-js%22%3A%20patch%0A---%0A%0Afix(clerk-js)%3A%20Ensure%20setActive%20does%20not%20emit%20token%20before%20onBeforeSetActive%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
May 22, 2025https://github.com/clerk/javascript/pull/5986#issuecomment-2902158298
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
Vercel for Git ↗︎https://vercel.link/github-learn-more
Inspecthttps://vercel.com/clerk-production/clerk-js-sandbox/499M7KFJ7aqoYv3KPG9ahE6SgG1v
Visit Previewhttps://clerk-js-sandbox-git-brkfix-set-active-emit-previous-token.clerkstage.dev
Add feedbackhttps://vercel.live/open-feedback/clerk-js-sandbox-git-brkfix-set-active-emit-previous-token.clerkstage.dev?via=pr-comment-feedback-link
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
clerk-js https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aclerk-js
May 22, 2025https://github.com/clerk/javascript/pull/5986#event-17777556619
https://github.com/apps/pkg-pr-new
pkg-pr-newhttps://github.com/apps/pkg-pr-new
May 22, 2025https://github.com/clerk/javascript/pull/5986#issuecomment-2902165296
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
Open in StackBlitzhttps://pkg.pr.new/template/0d78efd7-637b-4fde-904a-8d8c8629e3f3
8f3db30https://github.com/clerk/javascript/runs/42806122216
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
https://github.com/brkalow
brkalowhttps://github.com/brkalow
May 22, 2025https://github.com/clerk/javascript/pull/5986#issuecomment-2902171502
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
May 22, 2025https://github.com/clerk/javascript/pull/5986#issuecomment-2902179490
@brkalowhttps://github.com/brkalow
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
https://github.com/panteliselef
panteliselefhttps://github.com/panteliselef
May 22, 2025 https://github.com/clerk/javascript/pull/5986#pullrequestreview-2862401724
View reviewed changes https://github.com/clerk/javascript/pull/5986/files/d9831b08acfe0f5d6983bc61dabf87e91b35da6a
packages/clerk-js/src/core/clerk.tshttps://github.com/clerk/javascript/pull/5986/files/d9831b08acfe0f5d6983bc61dabf87e91b35da6a#diff-1952d6b8ac4b5495e1dba57c32bff9ce72d43f83595c1bc8532a76cf31feb753
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
https://github.com/brkalow
Remove token update altogetherhttps://github.com/clerk/javascript/pull/5986/commits/3f2af89658ec947e423ffe4f60cb26400bbed654
3f2af89https://github.com/clerk/javascript/pull/5986/commits/3f2af89658ec947e423ffe4f60cb26400bbed654
https://github.com/brkalow
brkalowhttps://github.com/brkalow
May 23, 2025https://github.com/clerk/javascript/pull/5986#event-17795100136
https://github.com/brkalow
Merge branch 'main' into brk.fix/set-active-emit-previous-tokenhttps://github.com/clerk/javascript/pull/5986/commits/8f3db30cbe540b654c2b9a34222a94dcaffc3c77
8f3db30https://github.com/clerk/javascript/pull/5986/commits/8f3db30cbe540b654c2b9a34222a94dcaffc3c77
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-cn9bpjfpr.clerkstage.dev
Previewhttps://clerk-js-sandbox-cn9bpjfpr.clerkstage.dev
May 23, 2025 19:07https://github.com/clerk/javascript/pull/5986#event-17795104523
View deploymenthttps://clerk-js-sandbox-cn9bpjfpr.clerkstage.dev
https://github.com/apps/vercel
vercelhttps://github.com/apps/vercel
deployedhttps://clerk-js-sandbox-noblvw4o5.clerkstage.dev
Previewhttps://clerk-js-sandbox-noblvw4o5.clerkstage.dev
May 23, 2025 19:08https://github.com/clerk/javascript/pull/5986#event-17795116502
View deploymenthttps://clerk-js-sandbox-noblvw4o5.clerkstage.dev
https://github.com/brkalow
brkalowhttps://github.com/brkalow
May 23, 2025 19:16https://github.com/clerk/javascript/pull/5986#event-17795197134
https://github.com/tmilewski
tmilewskihttps://github.com/tmilewski
May 27, 2025 https://github.com/clerk/javascript/pull/5986#pullrequestreview-2871622884
View reviewed changes https://github.com/clerk/javascript/pull/5986/files/8f3db30cbe540b654c2b9a34222a94dcaffc3c77
https://github.com/octoper
octoperhttps://github.com/octoper
May 27, 2025 https://github.com/clerk/javascript/pull/5986#pullrequestreview-2871817811
View reviewed changes https://github.com/clerk/javascript/pull/5986/files/8f3db30cbe540b654c2b9a34222a94dcaffc3c77
https://github.com/brkalow
brkalowhttps://github.com/brkalow
68bd90fhttps://github.com/clerk/javascript/commit/68bd90fa1e1daadd24c064385c009905388c032e
May 28, 2025https://github.com/clerk/javascript/pull/5986#event-17849593966
https://github.com/brkalow
brkalowhttps://github.com/brkalow
May 28, 2025 12:12https://github.com/clerk/javascript/pull/5986#event-17849594499
https://github.com/clerk-cookie
clerk-cookiehttps://github.com/clerk-cookie
May 28, 2025 https://github.com/clerk/javascript/pull/5986#ref-pullrequest-3094560359
ci(repo): Version packages #6015 https://github.com/clerk/javascript/pull/6015
Deployedhttps://clerk-js-sandbox-noblvw4o5.clerkstage.dev
vercel[bot]https://github.com/apps/vercel
View deployment https://clerk-js-sandbox-noblvw4o5.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%2F5986
https://github.com/tmilewski
tmilewski https://github.com/tmilewski
https://github.com/clerk/javascript/pull/5986/files/8f3db30cbe540b654c2b9a34222a94dcaffc3c77
https://github.com/panteliselef
panteliselef https://github.com/panteliselef
https://github.com/clerk/javascript/pull/5986/files/d9831b08acfe0f5d6983bc61dabf87e91b35da6a
https://github.com/octoper
octoper https://github.com/octoper
https://github.com/clerk/javascript/pull/5986/files/8f3db30cbe540b654c2b9a34222a94dcaffc3c77
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
clerk-js https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aclerk-js
Please reload this pagehttps://github.com/clerk/javascript/pull/5986
https://github.com/brkalow
https://github.com/clerk-cookie
https://github.com/tmilewski
https://github.com/octoper
https://github.com/panteliselef
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.