Skip to content

Instantly share code, notes, and snippets.

@vouill

vouill/main.js

Created Dec 4, 2017
Embed
What would you like to do?
auth main
const token = localStorage.getItem('user-token')
if (token) {
axios.defaults.headers.common['Authorization'] = token
}
@ikram142

This comment has been minimized.

Copy link

@ikram142 ikram142 commented Feb 14, 2019

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
You can’t perform that action at this time.