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

Function fromBase64Url

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

Source from the content-addressed store, hash-verified

25const toBase64Url = (input: string): string => Buffer.from(input, 'utf8').toString('base64url')
26
27const fromBase64Url = (input: string): string => Buffer.from(input, 'base64url').toString('utf8')
28
29const sign = (payload: string): string => hmacSha256Base64(payload, env.INTERNAL_API_SECRET)
30

Callers 1

verifyUploadTokenFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected