MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / hashBearerToken

Function hashBearerToken

server/src/middleware/auth.ts:283–285  ·  view source on GitHub ↗
(token: string)

Source from the content-addressed store, hash-verified

281const BEARER_JWT_CACHE_MAX_SIZE = 10_000;
282
283function hashBearerToken(token: string): string {
284 return createHash('sha256').update(token).digest('hex');
285}
286
287/**
288 * Validate a WorkOS-signed user JWT from the Authorization header.

Callers 1

validateWorkOSBearerJWTFunction · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected