( configPath: string, runtimeFlags: RuntimeFlags )
| 220 | } |
| 221 | |
| 222 | function readCredentialsFromKeyring( |
| 223 | configPath: string, |
| 224 | runtimeFlags: RuntimeFlags |
| 225 | ): Credentials | null { |
| 226 | const entry = createKeyringEntry(configPath, runtimeFlags); |
| 227 | const value = entry.getPassword(); |
| 228 | |
| 229 | if (value === null) { |
| 230 | return null; |
| 231 | } |
| 232 | |
| 233 | return parseCredentials(JSON.parse(value)); |
| 234 | } |
| 235 | |
| 236 | function writeCredentialsToKeyring( |
| 237 | configPath: string, |
no test coverage detected