We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 441c2bb + be9aed8 commit 6ccfdc7Copy full SHA for 6ccfdc7
resources/assets/js/store/reducers/Auth.js
@@ -53,7 +53,7 @@ const checkAuth = (state) =>{
53
isAdmin : localStorage.getItem('is_admin'),
54
});
55
if(state.isAuthenticated){
56
- Http.defaults.headers.common['Authorization'] = `Bearer ${localStorage.getItem('jwtToken')}`;
+ Http.defaults.headers.common['Authorization'] = `Bearer ${localStorage.getItem('jwt_token')}`;
57
}
58
return state;
59
};
@@ -69,4 +69,4 @@ const logout = (state) => {
69
70
71
72
-export default Auth;
+export default Auth;
0 commit comments