useEffect(() => {
if (!user) {
history.push('/');
return;
}
axios.get('https://api.chatengine.io/users/me/', {
headers: {
"project-id": "7e726344-92fc-4b67-b68c-381ec6f55767",
"user-name": user.email,
"user-secret": user.uid,
}
}).then(() => {
setLoading(false);
}).catch((error) => {
console.log(error.message);
})
}, [])
IAM GETTING THIS ERROR IN CONSOLE
Your login credentials were not correct:
Project ID: 7e726344-92fc-4b67-b68c-381ec6f55767
Username: s******@gmail.com
User Secret: ********WgQey454562
Double check these credentials to make sure they're correct.
If all three are correct, try resetting the username and secret in the Online Dashboard or Private API.
THIS IS RESPONSE IN NETWORK TAB {detail: "Authentication credentials were not provided."}
I DONT' KNOW WHY THIS ERROR IS GETTING, I TRIED CHANGING THE KEY OF THE HEADER E.G CAPITAL, SMALL ETC. plez. help solve this