text: import jwtDecode from 'jwt-decode';
  
  import { TOKEN } from './constants';
  
  export function setToken(token) { 
      localStorage.setItem(TOKEN, token);
  }
  
  
  export function getToken() { 
      return localStorage.getItem(TOKEN); 
  }
  
  export function decodeToken(token) { 
      return jwtDecode(token);
  }
  
  export function removeToken() { 
      localStorage.removeItem(TOKEN);
  }