Fixed token Header
This commit is contained in:
		
							parent
							
								
									c306f96bb8
								
							
						
					
					
						commit
						45da05901b
					
				| 
						 | 
				
			
			@ -18,7 +18,7 @@ export default boot<Store<StateInterface>>(({ Vue, store }) => {
 | 
			
		|||
  axios.interceptors.request.use(config => {
 | 
			
		||||
    const session = store.state.user.session;
 | 
			
		||||
    if (session.token) {
 | 
			
		||||
      config.headers = {'Authorization': 'Token ' + session.token};
 | 
			
		||||
      config.headers = {'Authorization': 'Bearer ' + session.token};
 | 
			
		||||
    }
 | 
			
		||||
    return config;
 | 
			
		||||
  });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue