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

Function grantedScopesFromRow

packages/core/sdk/src/executor.ts:1150–1156  ·  view source on GitHub ↗
(row: {
  readonly oauth_scope?: unknown;
})

Source from the content-addressed store, hash-verified

1148 * token endpoint) into the credential's `grantedScopes`. Undefined when the
1149 * row carries none, so scope comparisons downstream fail open. */
1150const grantedScopesFromRow = (row: {
1151 readonly oauth_scope?: unknown;
1152}): readonly string[] | undefined => {
1153 if (row.oauth_scope == null) return undefined;
1154 const scopes = String(row.oauth_scope).split(/\s+/).filter(Boolean);
1155 return scopes.length > 0 ? scopes : undefined;
1156};
1157
1158/** The canonical credential variable for a single-secret connection. OAuth tokens
1159 * and the primary apiKey value resolve through it. */

Callers 2

connectionCheckHealthFunction · 0.85
executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected