Created
October 1, 2018 16:13
-
-
Save sahibalejandro/5a90abe96f5a29ea070b3196f0cf54bd to your computer and use it in GitHub Desktop.
Form Object: Attach custom axios instance.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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