MCPcopy Create free account
hub / github.com/massCodeIO/massCode / getTokenPreview

Function getTokenPreview

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

Source from the content-addressed store, hash-verified

10}
11
12function getTokenPreview(token: string): string {
13 return `${token.slice(0, 5)}...${token.slice(-4)}`
14}
15
16function isSameHash(a: string, b: string): boolean {
17 const aBuffer = Buffer.from(a, 'hex')

Callers 1

generateIntegrationTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected