Created
December 4, 2017 11:16
-
-
Save vouill/03f074b48df8576fa00485015ff3ce53 to your computer and use it in GitHub Desktop.
auth main
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
const token = localStorage.getItem('user-token') | |
if (token) { | |
axios.defaults.headers.common['Authorization'] = token | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i use quasar framework , in wich file should I put this code