Authentication on Strapi

I have issue with login …
When i use postman with wrong password i have full error data with error status code of 400 and messages and …

but when i want to do this in my code i can not see that messages and see only 'bad request"

this is part of my code :

loginUser(values).then((res) => console.log(res)).catch((err) => console.log(err));

and this is my login api:
export const loginUser = (user) => {
return axios.post(${config['local-auth']}/local, user);
};

and this is my config.json file :
{
“nobatet-auth-api”: “https://nobatet.ir/auth”,
“local-auth”: “http://localhost:1337/auth
}

this is my error in console :

Error: Request failed with status code 400
at createError (createError.js:16)
at settle (settle.js:17)
at XMLHttpRequest.onloadend (xhr.js:54)