Skip to content

fix(clerk-js): Update existing SignUp object on SignUpContinue OAuth [v4 backport of #3401] - #4226

Closed
anagstef wants to merge 202 commits into
mainfrom
v4-backport-fix-sign-up-continue
Closed

fix(clerk-js): Update existing SignUp object on SignUpContinue OAuth [v4 backport of #3401]#4226
anagstef wants to merge 202 commits into
mainfrom
v4-backport-fix-sign-up-continue

Conversation

@anagstef

Copy link
Copy Markdown
Contributor

Description

This is a v4 backport of #3401

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

dimkl and others added 30 commits October 26, 2023 18:05
* 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>
(cherry picked from commit 48ca40a)

Co-authored-by: Tom Milewski <me@tm.codes>
…SDK-859] (#1994) (#2010)

(cherry picked from commit 78fc5ee)

Co-authored-by: Tom Milewski <me@tm.codes>
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
* chore(repo): Rename clerkinc to clerk ❤️

* chore(repo): Apply format fixes
* 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>
…ect to /sign-up or /sign-in (#2019) (#2071)

(cherry picked from commit d1b524f)

Co-authored-by: Mark Pitsilos <mark.pitsilos@gmail.com>
clerk-cookie and others added 11 commits July 25, 2024 02:56
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>
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-bot

changeset-bot Bot commented Sep 26, 2024

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 77c9620

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

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

The hard-coded value "Bearer deadbeef" is used as [authorization header](1).
fakeFetch.onCall(0).returns(jsonOk(mockJwks));
const kid = 'ins_whatever';
let jwk = await loadClerkJWKFromRemote({
secretKey: 'deadbeef',

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "deadbeef" is used as [authorization header](1).
// 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

The hard-coded value "deadbeef" is used as [authorization header](1).

// re-fetch, 5m cache is expired
jwk = await loadClerkJWKFromRemote({
secretKey: 'deadbeef',

Check failure

Code scanning / CodeQL

Hard-coded credentials

The hard-coded value "deadbeef" is used as [authorization header](1).
@anagstef
anagstef deleted the v4-backport-fix-sign-up-continue branch September 26, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.