(secretId: string)
| 10 | } |
| 11 | |
| 12 | const normalizeSecretId = (secretId: string): string => secretId.trim(); |
| 13 | |
| 14 | export function isSecretIdTaken(secretId: string, existingSecretIds: Iterable<string>): boolean { |
| 15 | const normalizedId = normalizeSecretId(secretId); |