(config: OnePasswordConfig)
| 158 | |
| 159 | /** Strip the service-account tokens from a stored config for external exposure. */ |
| 160 | export const redactConfig = (config: OnePasswordConfig): RedactedOnePasswordConfig => { |
| 161 | const [first, ...rest] = config.accounts; |
| 162 | return { accounts: [redactAccount(first), ...rest.map(redactAccount)] }; |
| 163 | }; |
| 164 | |
| 165 | // --------------------------------------------------------------------------- |
| 166 | // Connection status — reported per account so one unreachable account never |
no test coverage detected