(value: string | undefined)
| 25 | ]; |
| 26 | |
| 27 | export const normalizeCredential = (value: string | undefined): string | null => { |
| 28 | const normalized = value?.trim(); |
| 29 | return normalized && normalized.length > 0 ? normalized : null; |
| 30 | }; |
| 31 | |
| 32 | export const safeEqual = (actual: string, expected: string): boolean => { |
| 33 | const actualBytes = Buffer.from(actual); |