score:3

Accepted answer

you're using await with then(). you should switch to one. if you use await, assign the result to a variable. you should also be passing back the data of the response and not the response itself.

const response = await axios.post(...)
callback(response.data)

if you want to use then, then it's:

axios.post(...)
.then(respone => callback(response.data))

Related Query

More Query from same tag