I am calling an api to authenticate if the user is authenticated or not? Kindly help me in this matter.
var isauth = {
headers: {
},
method: “GET”,
url: ‘/game/is-authenticated’,
json: true
};
console.log("auth"+isauth);
isauth is returning some object.