MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / sign

Function sign

apps/cloud/src/auth/jwks-cache.node.test.ts:30–38  ·  view source on GitHub ↗
(keypair: Keypair)

Source from the content-addressed store, hash-verified

28};
29
30const sign = (keypair: Keypair) =>
31 new SignJWT({})
32 .setProtectedHeader({ alg: "RS256", kid: keypair.kid })
33 .setIssuer(issuer)
34 .setSubject("user_test")
35 .setAudience(audience)
36 .setIssuedAt()
37 .setExpirationTime("5m")
38 .sign(keypair.privateKey);
39
40interface FetchHarness {
41 readonly fetch: typeof globalThis.fetch;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected