import feathers from 'feathers/client' import feathersHooks from 'feathers-hooks' import feathersRest from 'feathers-rest/client' import feathersAuthentication from 'feathers-authentication/client' import superagent from 'superagent' const rest = feathersRest(window.location.origin) const client = feathers() .configure(feathersHooks()) .configure(feathersAuthentication({ storage: localStorage })) .configure(rest.superagent(superagent)) export default client