()
| 26 | // csrf_token is passed to the client as a cookie. The client must send |
| 27 | // this back as a header. |
| 28 | function getCSRFToken() { |
| 29 | const token = |
| 30 | typeof window !== 'undefined' ? cookies.get('csrf_token') : null; |
| 31 | return token ?? ''; |
| 32 | } |
| 33 | |
| 34 | export interface ResponseWithData<T> { |
| 35 | response: Response; |
no outgoing calls
no test coverage detected