We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee57ded commit 74e6548Copy full SHA for 74e6548
.changeset/wicked-chairs-own.md
@@ -0,0 +1,5 @@
1
+---
2
+"thirdweb": patch
3
4
+
5
+when explicitly passing `clientId` to `createThirdwebClient()` prefer it over computing the `clientId` from a passed `secretKey` option
packages/thirdweb/src/client/client.ts
@@ -114,7 +114,8 @@ export function createThirdwebClient(
114
throw new Error("clientId must be provided when using a JWT secretKey");
115
}
116
} else {
117
- realClientId = computeClientIdFromSecretKey(secretKey);
+ // always PREFER the clientId if provided, only compute it from the secretKey if we don't have a clientId passed explicitly
118
+ realClientId = clientId ?? computeClientIdFromSecretKey(secretKey);
119
120
121
0 commit comments