Skip to content

Instantly share code, notes, and snippets.

@vouill
Created December 4, 2017 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vouill/03f074b48df8576fa00485015ff3ce53 to your computer and use it in GitHub Desktop.
Save vouill/03f074b48df8576fa00485015ff3ce53 to your computer and use it in GitHub Desktop.
auth main
const token = localStorage.getItem('user-token')
if (token) {
axios.defaults.headers.common['Authorization'] = token
}
@ikram142
Copy link

i use quasar framework , in wich file should I put this code

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