(row: {
readonly oauth_scope?: unknown;
})
| 810 | * token endpoint) into the credential's `grantedScopes`. Undefined when the |
| 811 | * row carries none, so scope comparisons downstream fail open. */ |
| 812 | const grantedScopesFromRow = (row: { |
| 813 | readonly oauth_scope?: unknown; |
| 814 | }): readonly string[] | undefined => { |
| 815 | if (row.oauth_scope == null) return undefined; |
| 816 | const scopes = String(row.oauth_scope).split(/\s+/).filter(Boolean); |
| 817 | return scopes.length > 0 ? scopes : undefined; |
| 818 | }; |
| 819 | |
| 820 | /** The canonical credential variable for a single-secret connection. OAuth tokens |
| 821 | * and the primary apiKey value resolve through it. */ |
no outgoing calls
no test coverage detected