MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / verifyToken

Function verifyToken

services/db-proxy/src/utils/auth.ts:48–50  ·  view source on GitHub ↗
(providedToken: string, storedToken: string)

Source from the content-addressed store, hash-verified

46 return timingSafeEqual(providedToken, storedToken);
47}
48
49/**
50 * Create an error response with standard format
51 */
52export function errorResponse(
53 c: Context<{ Bindings: Env }>,

Callers 2

verifyTokenMethod · 0.90
auth.test.tsFile · 0.90

Calls 1

timingSafeEqualFunction · 0.90

Tested by

no test coverage detected