const config = { headers: { Authorization: `Bearer ${token}` } }; Axios.post( 'http://localhost:8000/api/v1/get_token_payloads', config ).then(console.log).catch(console.log);