qlaffont / fortnite-api

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

Expose access tokens #97

Closed SirWaddles closed 6 years ago

SirWaddles commented 6 years ago

I'm writing some code that interfaces with the Updates/Launcher part of the Epic system, I was wondering if you could just add a quick method that exposes the token that's retrieved on this line.

It gets replaced later on, so I can't just use .access_token

I can write a PR if you like, but I'm not sure how you would want this done (if at all.)

qlaffont commented 6 years ago

When you call the FortniteAPI you can have the token with : FortniteApi.access_token . So it will not be on the API.

SirWaddles commented 6 years ago

As far as I understand it, there's a separate token for the Fortnite API as there is for the Launcher API. The token I'm after is the first one, but it's only temporarily stored on the FortniteApi object. It gets replaced by the token retrieved using the "FORTINTE CLIENT TOKEN" authentication.

It's no longer accessible after this point.