You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Happens everytime I run the test code. Any ideas? Thanks.
[My Solution], I forgot to redeclare the axl class (check code below): const axl = require("app-xbox-live"); var tokens=""; async function getUserToken(user, pass){ const token = await axl.Token(user, pass); tokens = token; }; async function getUserByXUID(GamerTag){ var amount = 15; var xl = new axl.Account('XBL3.0 x=${tokens[1]};${tokens[0]}'); //this was my problem, needed to redeclare. var GT = xl.people.find(GamerTag, amount).then(console.log); console.log(GT); }; getUserToken("username@email", "secretpassword"); getUserByXUID("GAMERTAG HERE");
The text was updated successfully, but these errors were encountered:
PEOPLE_FIND": account.people.find(TEST_ARGS.PEOPLE_FIND[0], TEST_ARGS.PEOPLE_FIND[1]),
^
TypeError: Cannot read properties of undefined (reading 'find')
Happens everytime I run the test code. Any ideas? Thanks.
[My Solution], I forgot to redeclare the axl class (check code below):
const axl = require("app-xbox-live");
var tokens="";
async function getUserToken(user, pass){
const token = await axl.Token(user, pass);
tokens = token;
};
async function getUserByXUID(GamerTag){
var amount = 15;
var xl = new axl.Account('XBL3.0 x=${tokens[1]};${tokens[0]}'); //this was my problem, needed to redeclare.
var GT = xl.people.find(GamerTag, amount).then(console.log);
console.log(GT);
};
getUserToken("username@email", "secretpassword");
getUserByXUID("GAMERTAG HERE");
The text was updated successfully, but these errors were encountered: