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

if you want to use then, then it's:
.then(respone => callback(

Related Query

More Query from same tag