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

Function serializeOAuthScopes

packages/core/sdk/src/migration-spec.ts:113–114  ·  view source on GitHub ↗
(scopes: readonly string[])

Source from the content-addressed store, hash-verified

111// ---------------------------------------------------------------------------
112
113export const serializeOAuthScopes = (scopes: readonly string[]): string =>
114 [...new Set(scopes.filter((s) => s.length > 0))].join(" ");
115
116const isRecord = (value: unknown): value is Record<string, unknown> =>
117 typeof value === "object" && value !== null && !Array.isArray(value);

Callers 2

planConnectionRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected