MCPcopy Index your code
hub / github.com/massCodeIO/massCode / hashIntegrationToken

Function hashIntegrationToken

src/main/api/integrations/auth.ts:8–10  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

6const TOKEN_BYTES = 32
7
8export function hashIntegrationToken(token: string): string {
9 return createHash('sha256').update(token).digest('hex')
10}
11
12function getTokenPreview(token: string): string {
13 return `${token.slice(0, 5)}...${token.slice(-4)}`

Callers 2

generateIntegrationTokenFunction · 0.85

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected