Skip to content

Commit

Permalink
Update api.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mc100s authored Jul 12, 2018
1 parent 9bfe463 commit 6ab9372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default {
const userData = localStorage.getItem('user');
if (!userData) return false;
const user = JSON.parse(userData);
if (user.token && user.name) {
if (user.token) {
axios.defaults.headers.common['Authorization'] = 'Bearer ' + user.token;
return user;
}
Expand Down

0 comments on commit 6ab9372

Please sign in to comment.