qlaffont / fortnite-api

Fortnite API, Get Stats, News And Status
https://twitter.com/qlaffont
MIT License
352 stars 85 forks source link

[BUG] Sorry your client is not allowed to use the grant type password #192

Open edsson-madrigal opened 4 years ago

edsson-madrigal commented 4 years ago

code that is being used, this used to work fine few days ago

const Fortnite = require("fortnite-api"); let fortniteAPI = new Fortnite( [ "{the user}", "{the password}}", "MzQ0NmNkNzI2OTRjNGE0NDg1ZDgxYjc3YWRiYjIxNDE6OTIwOWQ0YTVlMjVhNDU3ZmI5YjA3NDg5ZDMxM2I0MWE=", "ZWM2ODRiOGM2ODdmNDc5ZmFkZWEzY2IyYWQ4M2Y1YzY6ZTFmMzFjMjExZjI4NDEzMTg2MjYyZDM3YTEzZmM4NGQ=" ] );

fortniteAPI.login().then(() => { }).catch(err => { console.log(err); });

andrewchae commented 4 years ago

They've fixed it in the python version here: https://github.com/Terbau/fortnitepy/commit/24db7763c3bd94374712d3abbbbb3c27ab81df91

Seeing if I can get it working here.

qlaffont commented 4 years ago

Thanks, I will check this asap.

qlaffont commented 4 years ago

Finally, I don't have time anymore to work on this repository. If you have any bug/new features, you can make a PR ! I will only fix security issues and merge PRs.

ChobPT commented 4 years ago

Finally, I don't have time anymore to work on this repository. If you have any bug/new features, you can make a PR ! I will only fix security issues and merge PRs.

does that mean you won't check on this one? Thanks!

sp0xffwork commented 4 years ago

and so? is anybody who can fix it? or are there another node.js api?

ChobPT commented 4 years ago

There isn't not really :(

iXyles commented 4 years ago

For the people that has knowledge of their own and wish to implement a fix for this specific library you have the new auth flow here: https://gist.github.com/iXyles/ec40cb40a2a186425ec6bfb9dcc2ddda

If you're a person who just wish to use something that works I can then point towards a similar library I've made my own but only for the stats API V1/V2 with the new auth flow already implemented: https://github.com/iXyles/fortnite-basic-api

PS: I talked with qlaffont on twitter before posting this.

sp0xffwork commented 4 years ago

there is temporared solution: use fortnite-basic-api to get token and use token in this fortnite-api

borwahs commented 4 years ago

Just FYI, I am working on a PR to update the auth flow as outlined in https://github.com/BuddyGG/buddy_matching/issues/151 by @iXyles.

Fyb3roptik commented 4 years ago

The fortnite API endpoints have changed. Check my fork of this repo for the working copy

Fyb3roptik commented 4 years ago

I have done a PR but it is not getting merged

psykodead commented 4 years ago

I dont care of comments deleted (again and again) or of your answer or of u anyway, Check my twiter 4 c GLITCHS in Epic fails games AND GLITCH THAT REST 10 YEARS AFTHER THE GAME WAS BUILD (starcraft2) what will happen to UT4 the Epic fail twitter.com/psykodead hxxps://twitter.com/psykodead twitter:com/psykodead