fut-api icon indicating copy to clipboard operation
fut-api copied to clipboard

New here - Unable to login

Open maxdelob opened this issue 9 years ago • 5 comments

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

maxdelob avatar Mar 07 '17 23:03 maxdelob

any error message?

vinch1n avatar Mar 08 '17 01:03 vinch1n

Error: Platform is invalid.

maxdelob avatar Mar 08 '17 01:03 maxdelob

can't help you. trying to figure out this problem too;

vinch1n avatar Mar 08 '17 02:03 vinch1n

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.

vsamma avatar Mar 21 '17 17:03 vsamma

Take a look at this

https://github.com/lorenzh/fut-api/issues/35

manuelmarichal avatar Jun 04 '17 16:06 manuelmarichal