Authentication on Strapi

You need to log the whole res to see the error, try using a catch{}error(e){console.log(e)} block