Skip to content

Instantly share code, notes, and snippets.

@EQuimper
Created November 25, 2016 21:36
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EQuimper/dc5fe02dcaca4469091729e1313f78d1 to your computer and use it in GitHub Desktop.
Save EQuimper/dc5fe02dcaca4469091729e1313f78d1 to your computer and use it in GitHub Desktop.
Axios add Authorization headers for default
axios.defaults.headers.common['Authorization'] = store.getState().auth.user.token;
@franciscop-invast
Copy link

Should't that be 'Bearer ' + sotre.getState().auth.user.token;?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment