(account: OnePasswordAccount)
| 150 | : { kind: "service-account" }; |
| 151 | |
| 152 | export const redactAccount = (account: OnePasswordAccount): RedactedOnePasswordAccount => ({ |
| 153 | id: account.id, |
| 154 | name: account.name, |
| 155 | auth: redactAuth(account.auth), |
| 156 | vaults: account.vaults, |
| 157 | }); |
| 158 | |
| 159 | /** Strip the service-account tokens from a stored config for external exposure. */ |
| 160 | export const redactConfig = (config: OnePasswordConfig): RedactedOnePasswordConfig => { |
no test coverage detected