(raw: unknown)
| 92 | /"(access_token|refresh_token|id_token|assertion|subject_token|client_secret)"\s*:\s*"[^"]*"/g |
| 93 | |
| 94 | function redactTokens(raw: unknown): string { |
| 95 | const s = typeof raw === 'string' ? raw : jsonStringify(raw) |
| 96 | return s.replace(SENSITIVE_TOKEN_RE, (_, k) => `"${k}":"[REDACTED]"`) |
| 97 | } |
| 98 | |
| 99 | // ─── Zod Schemas ──────────────────────────────────────────────────────────── |
| 100 |
no test coverage detected