(message: string | string[])
| 5 | |
| 6 | // Helper function to format error messages |
| 7 | const formatErrorMessage = (message: string | string[]): string => { |
| 8 | if (Array.isArray(message)) { |
| 9 | return message.join("\n"); |
| 10 | } |
| 11 | return message; |
| 12 | }; |
| 13 | |
| 14 | // Create axios instance with default config |
| 15 | const client = axios.create({ |