MCPcopy Create free account
hub / github.com/hashintel/hash / redactAuthQueryParams

Function redactAuthQueryParams

apps/hash-api/src/index.ts:251–257  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

249 : undefined;
250
251const redactAuthQueryParams = (value: string): string =>
252 value
253 /**
254 * Fail closed for auth logs by replacing complete query strings.
255 * This avoids relying on an allowlist of sensitive key names.
256 */
257 .replace(/\?[^#\s]*/g, "?[REDACTED_QUERY]");
258
259const sanitizeProxyLogArgs = (args: unknown[]): unknown[] =>
260 args.map((arg) =>

Callers 1

sanitizeProxyLogArgsFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected