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

Function hashSessionCookie

server/src/middleware/auth.ts:151–153  ·  view source on GitHub ↗
(cookie: string)

Source from the content-addressed store, hash-verified

149}
150
151function hashSessionCookie(cookie: string): string {
152 return createHash('sha256').update(cookie).digest('hex');
153}
154
155// Errors like JWKSTimeout (WorkOS key-fetch stall) or fetch/DNS failures are transient —
156// the session cookie is still valid, the upstream is just slow. Returning 401 here would

Callers 3

invalidateSessionCacheFunction · 0.85
requireAuthFunction · 0.85
optionalAuthFunction · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected