MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / callbackTokenFor

Function callbackTokenFor

services/security-auto-analysis/src/index.test.ts:79–88  ·  view source on GitHub ↗
(
  findingId = FINDING_ID,
  attemptToken = ATTEMPT_TOKEN
)

Source from the content-addressed store, hash-verified

77): Promise<string> {
78 return deriveCallbackToken({
79 secret: CALLBACK_SECRET,
80 scope: 'security-remediation-callback',
81 resourceParts: [attemptId, attemptToken],
82 });
83}
84
85function manualRemediationRequest(): Request {
86 return new Request('https://security-auto-analysis/internal/remediation/start', {
87 method: 'POST',
88 headers: {
89 'content-type': 'application/json',
90 'x-internal-api-key': 'worker-secret',
91 },

Callers 1

index.test.tsFile · 0.85

Calls 1

deriveCallbackTokenFunction · 0.90

Tested by

no test coverage detected