(record: Record<string, unknown>)
| 1361 | ] as const; |
| 1362 | |
| 1363 | function getOpenCodeNestedTokens(record: Record<string, unknown>): Record<string, unknown> | null { |
| 1364 | const tokens = record[OPENCODE_TOKENS_KEY]; |
| 1365 | if (tokens && typeof tokens === 'object' && !Array.isArray(tokens)) { |
| 1366 | return tokens as Record<string, unknown>; |
| 1367 | } |
| 1368 | return null; |
| 1369 | } |
| 1370 | |
| 1371 | /** |
| 1372 | * Check if the auth JSON has provider-specific OAuth credentials |
no outgoing calls
no test coverage detected