const axios = require('axios');
const RequestLogin = async function () {
let auth = {
"user_name": "username12l",
"password": "password12l",
};
let res = await axios.post('https://.../api/v1/login', auth);
//console.log("Dentro da Funcao", res);
return await res;
}
const login = RequestLogin()
console.log("loginSysaidCookie -> ", RequestLogin)
console.log("Login -> ", login)
How do I send the data to the const login?
My console --->
loginSysaidCookie -> [AsyncFunction: loginSysaidCookie]
login -> Promise { <pedings> }
I want the constant login to get the RequestLogin response.