(row: {
readonly oauth_scope?: unknown;
})
| 585 | * token endpoint) into the credential's `grantedScopes`. Undefined when the |
| 586 | * row carries none, so scope comparisons downstream fail open. */ |
| 587 | const grantedScopesFromRow = (row: { |
| 588 | readonly oauth_scope?: unknown; |
| 589 | }): readonly string[] | undefined => { |
| 590 | if (row.oauth_scope == null) return undefined; |
| 591 | const scopes = String(row.oauth_scope).split(/\s+/).filter(Boolean); |
| 592 | return scopes.length > 0 ? scopes : undefined; |
| 593 | }; |
| 594 | |
| 595 | /** The canonical credential variable for a single-secret connection. OAuth tokens |
| 596 | * and the primary apiKey value resolve through it. */ |
no outgoing calls
no test coverage detected