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

Function freshCustomAuthSlug

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

Source from the content-addressed store, hash-verified

130const shortId = (): string => Math.random().toString(36).slice(2, 8);
131
132export const freshCustomAuthSlug = (taken: ReadonlySet<string>): string => {
133 let candidate = `custom_${shortId()}`;
134 while (taken.has(candidate)) candidate = `custom_${shortId()}`;
135 return candidate;
136};
137
138export const mergeAuthTemplates = <T extends { readonly slug: string }>(
139 existing: readonly T[],

Callers 1

mergeAuthTemplatesFunction · 0.85

Calls 1

shortIdFunction · 0.85

Tested by

no test coverage detected