Closed LauraBeatris closed 1 week ago
Latest commit: 068938cd47877f30000da7164801c80ec8ac3365
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Description
Resolves SDK-1253, SDK-1811, SDK-1770
PR on top of https://github.com/clerk/javascript/pull/3525 to facilitate review on
clerkClient
changes.Refactoring
clerkClient
to be called as a function, instead of singleton, in order to read request data. It reads based on the following:clerkClient
gets accessed on middleware runtime, then use ALS store to access dynamic keys dataclerkClient
gets accessed on application server, then useNextRequest
to access dynamic keys dataChecklist
npm test
runs as expected.npm run build
runs as expected.Type of change