MCPcopy
hub / github.com/simstudioai/sim / hashState

Function hashState

apps/sim/lib/mcp/oauth/storage.ts:18–20  ·  view source on GitHub ↗
(state: string)

Source from the content-addressed store, hash-verified

16const logger = createLogger('McpOauthStorage')
17
18function hashState(state: string): string {
19 return createHash('sha256').update(state).digest('hex')
20}
21
22const STATE_TTL_MS = 10 * 60 * 1000
23

Callers 2

loadOauthRowByStateFunction · 0.85
saveStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected