Skip to content

Instantly share code, notes, and snippets.

@sahibalejandro
Created October 1, 2018 16:13
Show Gist options
  • Save sahibalejandro/5a90abe96f5a29ea070b3196f0cf54bd to your computer and use it in GitHub Desktop.
Save sahibalejandro/5a90abe96f5a29ea070b3196f0cf54bd to your computer and use it in GitHub Desktop.
Form Object: Attach custom axios instance.
import axios from 'axios';
import Form from 'form-object';
axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
Form.defaults.axios = axios;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment