react js, it does not return the token code. In the "postman" it works okay, a method "POST" and in the body I pass in "raw" But when I do it in react js it doesn't return that, what am I doing wrong? Thank you
export const apiCallToken = async () => {
const res = await fetch(apiLogin, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
}),
})
return aa
could you post your React component code? Without it it's hard to understand what's the issue there. The apiCallToken function looks fine.