New here - Unable to login
Hi all, first thanks for the work here, this seems pretty awesome but I can't fully appreciate since I can't login. I guess I don't call the authentification code properly but I can't make it work.
Is this the way to log in ?
var futapi = require("fut-api"); var apiClient = new futapi([]);
function twoFactorCodeCb(next){ /* send your authentication code with the "next" method */ next("myemail, myPassword, MyAnwser, ps4"); }
apiClient.login("email","password","awnser", "platform", twoFactorCodeCb, function(error,response){ if(error) { return console.log(error); } console.log("logged in."); apiClient.getCredits(function(error, response){ }); } );
Thanks for the help.
Max
any error message?
Error: Platform is invalid.
can't help you. trying to figure out this problem too;
The contents of the "next" in twoFactorCodeCb is wrong. You need to have the app authenticator code there as a string.
Also, based on your error message, make sure you have correct platform, it's one of those: "ps3","ps4","pc","x360","xone"
edit: That being said, login does not work for me as well.
Take a look at this
https://github.com/lorenzh/fut-api/issues/35