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

Function freshCustomAuthSlug

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

Source from the content-addressed store, hash-verified

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

Callers 1

mergeAuthTemplatesFunction · 0.85

Calls 1

shortIdFunction · 0.85

Tested by

no test coverage detected