MCPcopy Index your code
hub / github.com/simstudioai/sim / sign

Function sign

apps/sim/lib/uploads/core/upload-token.ts:29–29  ·  view source on GitHub ↗
(payload: string)

Source from the content-addressed store, hash-verified

27const fromBase64Url = (input: string): string => Buffer.from(input, 'base64url').toString('utf8')
28
29const sign = (payload: string): string => hmacSha256Base64(payload, env.INTERNAL_API_SECRET)
30
31/**
32 * Sign an upload session token binding (uploadId, key, userId, workspaceId, context).

Callers 2

signUploadTokenFunction · 0.70
verifyUploadTokenFunction · 0.70

Calls 1

hmacSha256Base64Function · 0.90

Tested by

no test coverage detected