René's URL Explorer Experiment


Title: fix(clerk-js): Cache logic around org ID pass to getToken() by brkalow · Pull Request #4013 · clerk/javascript · GitHub

Open Graph Title: fix(clerk-js): Cache logic around org ID pass to getToken() by brkalow · Pull Request #4013 · clerk/javascript

X Title: fix(clerk-js): Cache logic around org ID pass to getToken() by brkalow · Pull Request #4013 · clerk/javascript

Description: Official JavaScript repository for Clerk authentication - fix(clerk-js): Cache logic around org ID pass to getToken() by brkalow · Pull Request #4013 · clerk/javascript

Open Graph Description: Description Adjusts logic around passing organizationId to getToken() to ensure the generated cache key is correct for the hydrate flow, as well as ensuring we update the session token if no orga...

X Description: Description Adjusts logic around passing organizationId to getToken() to ensure the generated cache key is correct for the hydrate flow, as well as ensuring we update the session token if no orga...

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

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:42e613e5-6c32-413a-cdc4-03c325fd40df
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEAA6:2A274A:2E18F55:40D5414:6AFACF51
html-safe-nonceb3530f374c88aea81a244769d781747ccdaec978f7424bac97ed3e77c7448fee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQUE2OjJBMjc0QToyRTE4RjU1OjQwRDU0MTQ6NkFGQUNGNTEiLCJ2aXNpdG9yX2lkIjoiMTE0Mjc4NTIzNzU1NDIyMDg4MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca76647f466ee9441a4fe95f55e2b31ea614ef537826d73979eb2433740963ef5
hovercard-subject-tagpull_request:2034750962
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/4013/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/d5d6968fb3a992b4b56b858988dd04ae574c12a5a9ab75d82c6a9ef51bf6e994/clerk/javascript/pull/4013
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d5d6968fb3a992b4b56b858988dd04ae574c12a5a9ab75d82c6a9ef51bf6e994/clerk/javascript/pull/4013
og:image:altDescription Adjusts logic around passing organizationId to getToken() to ensure the generated cache key is correct for the hydrate flow, as well as ensuring we update the session token if no orga...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrkalow
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/4013#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fclerk%2Fjavascript%2Fpull%2F4013
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%2F4013
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/4013
Reloadhttps://github.com/clerk/javascript/pull/4013
Reloadhttps://github.com/clerk/javascript/pull/4013
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/get-token-should-updatehttps://github.com/clerk/javascript/tree/brk.fix/get-token-should-update
Conversationhttps://github.com/clerk/javascript/pull/4013
Commits8 (8)https://github.com/clerk/javascript/pull/4013/commits
Checkshttps://github.com/clerk/javascript/pull/4013/checks
Files changedhttps://github.com/clerk/javascript/pull/4013/files
fix(clerk-js): Cache logic around org ID pass to getToken()https://github.com/clerk/javascript/pull/4013#top
brkalowhttps://github.com/brkalow
mainhttps://github.com/clerk/javascript/tree/main
brk.fix/get-token-should-updatehttps://github.com/clerk/javascript/tree/brk.fix/get-token-should-update
https://github.com/brkalow
brkalowhttps://github.com/brkalow
Aug 23, 2024https://github.com/clerk/javascript/pull/4013#issue-2483767146
Please reload this pagehttps://github.com/clerk/javascript/pull/4013
#3786https://github.com/clerk/javascript/pull/3786
JSDoc commentshttps://jsdoc.app/about-getting-started.html
Documentationhttps://github.com/clerk/clerk-docs
Please reload this pagehttps://github.com/clerk/javascript/pull/4013
brkalowhttps://github.com/brkalow
August 23, 2024 14:02https://github.com/clerk/javascript/pull/4013#commits-pushed-d7a2dc4
https://github.com/brkalow
fix cache logic around org ID pass to getToken()https://github.com/clerk/javascript/pull/4013/commits/d7a2dc43a2852d893a61fc756b8f0d620b3d12a6
d7a2dc4https://github.com/clerk/javascript/pull/4013/commits/d7a2dc43a2852d893a61fc756b8f0d620b3d12a6
https://github.com/brkalow
Adds changesethttps://github.com/clerk/javascript/pull/4013/commits/44a66d4953eee3a04b31ec3befedd82f5252b1c8
44a66d4https://github.com/clerk/javascript/pull/4013/commits/44a66d4953eee3a04b31ec3befedd82f5252b1c8
https://github.com/brkalow
Simplify logichttps://github.com/clerk/javascript/pull/4013/commits/1bf4d40a25e835fe333643024d2b9166d4841d97
1bf4d40https://github.com/clerk/javascript/pull/4013/commits/1bf4d40a25e835fe333643024d2b9166d4841d97
https://github.com/brkalow
Updates tests to fix a flake, and ensure we're validating the case wh…https://github.com/clerk/javascript/pull/4013/commits/195172fe5a40fe875eeede348a0fc4d2aea1e148
195172fhttps://github.com/clerk/javascript/pull/4013/commits/195172fe5a40fe875eeede348a0fc4d2aea1e148
https://github.com/apps/changeset-bot
changeset-bothttps://github.com/apps/changeset-bot
Aug 23, 2024https://github.com/clerk/javascript/pull/4013#issuecomment-2307699769
Please reload this pagehttps://github.com/clerk/javascript/pull/4013
c7eab6chttps://github.com/clerk/javascript/commit/c7eab6c0f63a91a9359a49820e7b677f5abe6f3f
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/get-token-should-update?filename=.changeset/neat-scissors-type.md&value=---%0A%22%40clerk%2Fclerk-js%22%3A%20patch%0A---%0A%0Afix(clerk-js)%3A%20Cache%20logic%20around%20org%20ID%20pass%20to%20getToken()%0A
Please reload this pagehttps://github.com/clerk/javascript/pull/4013
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
Aug 23, 2024https://github.com/clerk/javascript/pull/4013#event-13997190437
brkalowhttps://github.com/brkalow
August 23, 2024 14:52https://github.com/clerk/javascript/pull/4013#commits-pushed-9fa7815
https://github.com/brkalow
Adds additional test case for the cache hydration casehttps://github.com/clerk/javascript/pull/4013/commits/9fa7815ffd19f60074243772a74397a18fb38154
9fa7815https://github.com/clerk/javascript/pull/4013/commits/9fa7815ffd19f60074243772a74397a18fb38154
https://github.com/brkalow
Test case where cache is hydrated with a specific organization, makin…https://github.com/clerk/javascript/pull/4013/commits/f5ac1e2b49d5a710b2860d7291a580c35465df70
f5ac1e2https://github.com/clerk/javascript/pull/4013/commits/f5ac1e2b49d5a710b2860d7291a580c35465df70
https://github.com/brkalow
fixes lint errorhttps://github.com/clerk/javascript/pull/4013/commits/e58e1532c3ecbe4d5b9ce1d47d56d2a247f4f0ba
e58e153https://github.com/clerk/javascript/pull/4013/commits/e58e1532c3ecbe4d5b9ce1d47d56d2a247f4f0ba
https://github.com/brkalow
brkalowhttps://github.com/brkalow
Aug 23, 2024 https://github.com/clerk/javascript/pull/4013#pullrequestreview-2258026875
View reviewed changes https://github.com/clerk/javascript/pull/4013/files/e58e1532c3ecbe4d5b9ce1d47d56d2a247f4f0ba
.changeset/early-ads-notice.mdhttps://github.com/clerk/javascript/pull/4013/files/e58e1532c3ecbe4d5b9ce1d47d56d2a247f4f0ba#diff-079a555420773a5407de876c3f7e38b9a7a4b39b6ef9a07d8c019a2e48677619
brkalowhttps://github.com/brkalow
Aug 23, 2024https://github.com/clerk/javascript/pull/4013#discussion_r1729465643
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#3786https://github.com/clerk/javascript/pull/3786
Please reload this pagehttps://github.com/clerk/javascript/pull/4013
https://github.com/dstaley
dstaleyhttps://github.com/dstaley
Aug 23, 2024 https://github.com/clerk/javascript/pull/4013#pullrequestreview-2258029926
View reviewed changes https://github.com/clerk/javascript/pull/4013/files/e58e1532c3ecbe4d5b9ce1d47d56d2a247f4f0ba
https://github.com/brkalow
brkalowhttps://github.com/brkalow
Aug 23, 2024 https://github.com/clerk/javascript/pull/4013#pullrequestreview-2258030422
View reviewed changes https://github.com/clerk/javascript/pull/4013/files/e58e1532c3ecbe4d5b9ce1d47d56d2a247f4f0ba
packages/clerk-js/src/core/resources/Session.tshttps://github.com/clerk/javascript/pull/4013/files/e58e1532c3ecbe4d5b9ce1d47d56d2a247f4f0ba#diff-03369288354caa35916da67943164d7f1d126faee5dbf43343b85f137e720653
brkalowhttps://github.com/brkalow
Aug 23, 2024https://github.com/clerk/javascript/pull/4013#discussion_r1729468272
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/4013
https://github.com/brkalow
brkalowhttps://github.com/brkalow
Aug 23, 2024 https://github.com/clerk/javascript/pull/4013#pullrequestreview-2258031215
View reviewed changes https://github.com/clerk/javascript/pull/4013/files/e58e1532c3ecbe4d5b9ce1d47d56d2a247f4f0ba
packages/clerk-js/src/core/resources/Session.tshttps://github.com/clerk/javascript/pull/4013/files/e58e1532c3ecbe4d5b9ce1d47d56d2a247f4f0ba#diff-03369288354caa35916da67943164d7f1d126faee5dbf43343b85f137e720653
brkalowhttps://github.com/brkalow
Aug 23, 2024https://github.com/clerk/javascript/pull/4013#discussion_r1729468736
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/clerk/javascript/pull/4013
https://github.com/brkalow
brkalowhttps://github.com/brkalow
August 23, 2024 20:14https://github.com/clerk/javascript/pull/4013#event-13997511262
https://github.com/brkalow
fixes prettier issuehttps://github.com/clerk/javascript/pull/4013/commits/c7eab6c0f63a91a9359a49820e7b677f5abe6f3f
c7eab6chttps://github.com/clerk/javascript/pull/4013/commits/c7eab6c0f63a91a9359a49820e7b677f5abe6f3f
https://github.com/brkalow
brkalowhttps://github.com/brkalow
748227chttps://github.com/clerk/javascript/commit/748227c7dbce05eb634e1a3b2dc90e97be2fc5f6
Aug 23, 2024https://github.com/clerk/javascript/pull/4013#event-13997852718
https://github.com/brkalow
brkalowhttps://github.com/brkalow
August 23, 2024 20:57https://github.com/clerk/javascript/pull/4013#event-13997852816
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%2F4013
https://github.com/dstaley
dstaley https://github.com/dstaley
https://github.com/clerk/javascript/pull/4013/files/e58e1532c3ecbe4d5b9ce1d47d56d2a247f4f0ba
Please reload this pagehttps://github.com/clerk/javascript/pull/4013
clerk-js https://github.com/clerk/javascript/issues?q=state%3Aopen%20label%3Aclerk-js
Please reload this pagehttps://github.com/clerk/javascript/pull/4013
https://github.com/brkalow
https://github.com/dstaley
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.