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 befdcef commit bee9d76Copy full SHA for bee9d76
.changeset/orange-llamas-jog.md
@@ -0,0 +1,5 @@
1
+---
2
+"@trigger.dev/core": patch
3
4
+
5
+Add individual run ids to auto-generated public access token when calling batchTrigger
packages/core/src/v3/apiClient/index.ts
@@ -230,7 +230,7 @@ export class ApiClient {
230
secretKey: this.accessToken,
231
payload: {
232
...claims,
233
- scopes: [`read:batch:${data.batchId}`],
+ scopes: [`read:batch:${data.batchId}`].concat(data.runs.map((r) => `read:runs:${r}`)),
234
},
235
expirationTime: requestOptions?.publicAccessToken?.expirationTime ?? "1h",
236
});
0 commit comments