(auth: OnePasswordAuth)
| 145 | export type RedactedOnePasswordConfig = typeof RedactedOnePasswordConfig.Type; |
| 146 | |
| 147 | const redactAuth = (auth: OnePasswordAuth): typeof RedactedOnePasswordAuth.Type => |
| 148 | auth.kind === "desktop-app" |
| 149 | ? { kind: "desktop-app", accountName: auth.accountName } |
| 150 | : { kind: "service-account" }; |
| 151 | |
| 152 | export const redactAccount = (account: OnePasswordAccount): RedactedOnePasswordAccount => ({ |
| 153 | id: account.id, |