You can optionally configure by modifying the middleware chain and the fetch function it uses.

import { configureMadConnect, checkStatus, parseJSON } from '';

import { authFetch } from '';

  fetch: authFetch,
  middleware: [checkStatus, parseJSON],

In the above example we configure fetch to be the fetch function defined in the library. This way the user credentials are sent whenever fetch is used.

If you do not configure, it will use window.fetch and the default middlewares.

The default middlewares is the following array: [checkStatus, parseJSON].