()
| 34 | } |
| 35 | |
| 36 | function buildAuthHeader(): Record<string, string> | undefined { |
| 37 | if (AuthStore.token) { |
| 38 | return { Authorization: `Bearer ${AuthStore.token.token}` }; |
| 39 | } |
| 40 | return {}; |
| 41 | } |
| 42 | |
| 43 | function buildBody(data?: Record<string, any>): string | undefined { |
| 44 | if (data) { |