Return an account key suitable for use in keyrings for a given configPath. * * `auth.json` and the keychain are supposed to be equivalent and exchangeable. * Since file-based credentials storage is configurable (via config path), * we must ensure that keyring entries are keyed by config path al
(configPath: string)
| 161 | * the path. |
| 162 | */ |
| 163 | function getKeyringAccount(configPath: string): string { |
| 164 | const digest = createHash('sha256').update(configPath).digest('hex'); |
| 165 | return `cli:${digest.slice(0, 16)}`; |
| 166 | } |
| 167 | |
| 168 | export function setLoadKeyringModuleForTesting( |
| 169 | nextLoadKeyringModule?: LoadKeyringModule |
no test coverage detected