MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / normalizeCredential

Function normalizeCredential

apps/local/src/serve-shared.ts:27–30  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

25];
26
27export const normalizeCredential = (value: string | undefined): string | null => {
28 const normalized = value?.trim();
29 return normalized && normalized.length > 0 ? normalized : null;
30};
31
32export const safeEqual = (actual: string, expected: string): boolean => {
33 const actualBytes = Buffer.from(actual);

Callers 1

startServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected