( configPath: string, runtimeFlags: RuntimeFlags )
| 287 | } |
| 288 | |
| 289 | function tryReadKeyringCredentialsIntoFile( |
| 290 | configPath: string, |
| 291 | runtimeFlags: RuntimeFlags |
| 292 | ): Credentials | null { |
| 293 | try { |
| 294 | const credentials = readCredentialsFromKeyring(configPath, runtimeFlags); |
| 295 | |
| 296 | if (credentials === null) { |
| 297 | return null; |
| 298 | } |
| 299 | |
| 300 | return migrateCredentialsToFile(configPath, credentials, runtimeFlags); |
| 301 | } catch { |
| 302 | return null; |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | function readFileStorageCredentials( |
| 307 | configPath: string, |
no test coverage detected