var JSONAPIClient = require('json-api-client');
var config = require('./config');
var apiClient = require('./api-client');

var talkClient = new JSONAPIClient(config.talkHost, {
  'Content-Type': 'application/json',
  'Accept': 'application/json',
});

talkClient.params = apiClient.params;
talkClient.headers = apiClient.headers;
talkClient.handleError = apiClient.handleError;

module.exports = talkClient;

@@ -371,16 +371,78 @@
 leError;
+%0AtalkClient.beforeEveryRequest = apiClient.beforeEveryRequest;
 %0A%0Amodule

Check the bearer token before talk client requests (#73)