Skip to content

Commit ba92cc8

Browse files
authored
fix: authentication for analytics (#852)
1 parent 503f37e commit ba92cc8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shared/utils/usage.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ export interface ReportUsageParams {
4040

4141
const ANALYTICS_DEFAULT_HEADERS = {
4242
"Content-Type": "application/json",
43-
"x-sdk-version": process.env.ENGINE_VERSION,
43+
"x-sdk-version": env.ENGINE_VERSION,
4444
"x-product-name": "engine",
4545
"x-client-id": thirdwebClientId,
46+
"x-secret-key": env.THIRDWEB_API_SECRET_KEY,
4647
} as HeadersInit;
4748

4849
const SKIP_USAGE_PATHS = new Set([

0 commit comments

Comments
 (0)