fix(clerk-js): Update existing SignUp object on SignUpContinue OAuth [v4 backport of #3401] - #4226
Closed
anagstef wants to merge 202 commits into
Closed
fix(clerk-js): Update existing SignUp object on SignUpContinue OAuth [v4 backport of #3401]#4226anagstef wants to merge 202 commits into
anagstef wants to merge 202 commits into
Conversation
* chore(repo): Avoid having a main-v4 local branch to create changeset * chore(repo): Differentiate version packages PR of v4 * chore(repo): Add changeset
* fix(backend): Fix for next 14 fetch bind issue * fix(nextjs): Use named imports for fetch runtime polyfill Next14 seems to have changed the way it handles default exports when using the webpack bundler for some of their build variants when using `npm run dev`. This commit ensures that we no longer use the default export in an effort to improve compat between the different nextjs versions. More information can be found here: https://esbuild.github.io/content-types/#default-interop and here: #612 * Create late-dolphins-peel.md --------- Co-authored-by: Nikos Douvlis <nikosdouvlis@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* fix(shared): Remove "module" from package.json * chore(repo): Add subpath workaround script * chore(shared): Add script to shared * Create wise-houses-shop.md * chore(*): Fix stuff * chore(repo): Improve script * chore(repo): Scripting * Update wise-houses-shop.md
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…1894) clerkTraceId is used when available and defaults to cloudflares CF Ray id when its missing.
…1983) * fix(clerk-expo,shared): Bundle shared in expo * Revert "fix(clerk-expo,shared): Bundle shared in expo" This reverts commit c1e0279. * fix(shared): Add files key and fix script * chore(repo): Linting * fix(shared): Add package.json to exports (cherry picked from commit a68eb30) Co-authored-by: Lennart <lekoarts@gmail.com>
) * Added style for prefers-color-scheme to interstitial head This checks if the user prefers dark color schemes, and then sets the body to black. This could reduce 'flashes of white'. * feat(backend): Added prefers-color-scheme to interstitial (cherry picked from commit 8b6b094) Co-authored-by: Roy Anger <roy@royanger.com>
…ntrol of the UI (#1896) * fix(clerk-js): Correct initial ref value for form feedback (#1933) * chore(clerk-js): Use `org:sys_domains:read` * test(clerk-js): Use `org:sys_domains:read` * chore(clerk-js): Add changeset * chore(clerk-js): UseDomainList * feat(clerk-js): Session.isAuthorized now support the `any` parameter * chore(clerk-js): Improve relative url creation in DomainList * test(clerk-js): Test cases for trimLeadingSlash * chore(clerk-js): Address Pr comments --------- Co-authored-by: George Desipris <73396808+desiprisg@users.noreply.github.com>
* ci(repo): Update CI flow; Integrate Turbo caching [SDK-854] (#1934) * ci(repo): Update CI flow; Integrate Turbo caching * chore(repo): Add changeset * build(repo): Extracted actions (#1946) (cherry picked from commit a2f451b) * fix(repo): Add merge_group trigger (#1975) (cherry picked from commit f853fb3) * chore(repo): Rename formatting-linting job (#1984) (cherry picked from commit bdfd27b) * chore(repo): Update main-v4 to release/v4 --------- Co-authored-by: Nikos Douvlis <nikosdouvlis@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…) (#2013) * feat(shared): Expose stable mutate * chore(clerk-js): OrganizationList and switcher with stable mutate * chore(clerk-js): OrganizationProfile with stable mutate * fix(shared): Replace mutate with setCache and revalidate * fix(clerk-js): Replace mutate with setCache and revalidate * chore(clerk-js,shared): Replace setCache with setData * fix(shared): Remove unnecessary complexity in types * chore(clerk-js): Update after rebase * chore(shared): Add comments with context * chore(shared): Update changeset (cherry picked from commit 743c4d2) Co-authored-by: panteliselef <panteliselef@outlook.com>
…roy (#1913) (#2016) * fix(clerk-js): Re-initialize Client singleton on Client destroy * fix(clerk-js): Assign default values instead of re-initializing Client class * chore(repo): Adds changeset * chore(repo): Adds changeset * chore(clerk-js): Fix typo in test * test(clerk-js): Added test for Client singleton destroy * test(clerk-js): Update tests for Client singleton * test(clerk-js): Update tests for Client singleton & created new fixtures (cherry picked from commit 93a6115) Co-authored-by: Vaggelis Yfantis <vaggelisyfantis@gmail.com>
…2039) * feat(clerk-js,types): Fetch custom roles and localize them * test(clerk-js): Fetch custom roles and localize them * feat(clerk-js,types): Create PermissionResource * chore(clerk-js): Add changeset * chore(clerk-js): Add experimental tags * test(clerk-js): Add test case for displaying custom roles in select menu * chore(clerk-js): Improve types & add comments * chore(clerk-js): Address PR comments (cherry picked from commit 0293f29)
… `<Gate/>` (#1942) (#2051) * feat(nextjs,clerk-react,types,clerk-js): Add experimental support for `<Gate/>` * chore(clerk-js): Remove references to permissions * fix(clerk-js): Edit internal Gate to use some instead of any * chore(clerk-js): Enable tests * chore(clerk-js): Add changeset * chore(types): Create experimental types * feat(nextjs): Export `<Experimental__Gate/>` * chore(chrome-extension): Update snapshot
…stance` deprecation warning (#2055)
* fix(clerk-js): Incorrect result counters in data tables (#2056) * fix(clerk-js): Incorrect result counters in data tables * test(clerk-js): Unit test for pagination counts (cherry picked from commit 64d3763) * chore(clerk-js): Import missing act This was caused by missing commit that was not backported --------- Co-authored-by: panteliselef <panteliselef@outlook.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
#4049) Co-authored-by: Bryce Kalow <bryce@clerk.dev>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
🦋 Changeset detectedLatest commit: 77c9620 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
| fakeFetch.calledOnceWith('https://api.clerk.test/v1/users/user_deadbeef', { | ||
| method: 'GET', | ||
| headers: { | ||
| Authorization: 'Bearer deadbeef', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| fakeFetch.onCall(0).returns(jsonOk(mockJwks)); | ||
| const kid = 'ins_whatever'; | ||
| let jwk = await loadClerkJWKFromRemote({ | ||
| secretKey: 'deadbeef', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
| // re-fetch, 5m cache is expired | ||
| fakeFetch.onCall(1).returns(jsonOk(mockJwks)); | ||
| jwk = await loadClerkJWKFromRemote({ | ||
| secretKey: 'deadbeef', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
|
|
||
| // re-fetch, 5m cache is expired | ||
| jwk = await loadClerkJWKFromRemote({ | ||
| secretKey: 'deadbeef', |
Check failure
Code scanning / CodeQL
Hard-coded credentials
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This is a v4 backport of #3401
Checklist
npm testruns as expected.npm run buildruns as expected.Type of change