export const setHeaderAuth = AUTH_TOKEN => { axios.defaults.headers.common['Authorization'] = AUTH_TOKEN ? `Bear ${token}` : null; } const {token} = localStorage if (AUTH_TOKEN) setHeaderAuth(AUTH_TOKEN)