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

Function slugifyOAuthKey

packages/core/sdk/src/oauth-service.ts:323–327  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

321 (issuerIsOriginOnly(inputIssuer) && issuerOrigin(rowIssuer) === inputIssuer));
322
323const slugifyOAuthKey = (value: string): string =>
324 value
325 .toLowerCase()
326 .replace(/[^a-z0-9]+/g, "-")
327 .replace(/^-+|-+$/g, "");
328
329const shortStableHash = (value: string): string => {
330 let hash = 0x811c9dc5;

Callers 1

dcrClientSlugFunction · 0.85

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected