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

Function freshCustomAuthSlug

packages/core/sdk/src/integration.ts:120–124  ·  view source on GitHub ↗
(taken: ReadonlySet<string>)

Source from the content-addressed store, hash-verified

118const shortId = (): string => Math.random().toString(36).slice(2, 8);
119
120export const freshCustomAuthSlug = (taken: ReadonlySet<string>): string => {
121 let candidate = `custom_${shortId()}`;
122 while (taken.has(candidate)) candidate = `custom_${shortId()}`;
123 return candidate;
124};
125
126export const mergeAuthTemplates = <T extends { readonly slug: string }>(
127 existing: readonly T[],

Callers 1

mergeAuthTemplatesFunction · 0.85

Calls 1

shortIdFunction · 0.85

Tested by

no test coverage detected