diff --git a/.changeset/young-experts-attack.md b/.changeset/young-experts-attack.md new file mode 100644 index 0000000000..819f8dfd8b --- /dev/null +++ b/.changeset/young-experts-attack.md @@ -0,0 +1,5 @@ +--- +'@clerk/clerk-js': patch +--- + +Add setter for sdkMetadata on Clerk to address issues arising from older versions of the SDK. diff --git a/packages/clerk-js/src/core/clerk.ts b/packages/clerk-js/src/core/clerk.ts index 59e5b219f8..d32f70291d 100644 --- a/packages/clerk-js/src/core/clerk.ts +++ b/packages/clerk-js/src/core/clerk.ts @@ -191,6 +191,10 @@ export default class Clerk implements ClerkInterface { return Clerk.version; } + set sdkMetadata(metadata: SDKMetadata) { + Clerk.sdkMetadata = metadata; + } + get sdkMetadata(): SDKMetadata { return Clerk.sdkMetadata; }