- Overview
- Administrative
- Stories
- PRs
- Good feedback on PRs
- Still need to be more active in prioritizing
- Document, document, document
{ | |
"data":{ | |
"assertion":{ | |
"lifetime":{ | |
"expiration":604800 | |
} | |
} | |
} | |
} |
#### Why fetch (from `core/utils/fetch`)? | |
This was originally created to add and extract headers to the requests for authentication purposes. When we moved to the middleware approach it seems that this is just a wrapper around `whatwg-fetch`. As a note - this wrapper isn't really necessary anymore. | |
#### Why `parseResponse`? | |
This was created, in part, due to API issues. Since `500` errors were occuring and responding with `text/html` content type, it was causing errors when we were trying to parse the response. | |
#### Why `apiMiddlware`? | |
We moved to `apiMiddleware` to replace the `fetch` from `core/utils`. |