Closed fatinghenji closed 2 years ago
Well, I am trying to adopt a native method, by using the fnbrjs
library (check the fnbrjs
branch), but I am struggling to implement it properly. I cannot figure out how to authenticate to the epic game store. The part I struggle with is generating cookies for the epic game store.
Note: This is a workaround i found which works. Its a bit tedious and manual at this point. 😔😔
The DeviceAuthGenerator throws error, however i was able to get the info required for device_auths.json
by following the instructions here. These are the steps I followed:
authorization_code
by opening this link in browser. The client id i've used is for fortniteIosClient
. curl --location --request POST 'https://account-public-service-prod.ol.epicgames.com/account/api/oauth/token' \
--header 'Authorization: Basic MzQ0NmNkNzI2OTRjNGE0NDg1ZDgxYjc3YWRiYjIxNDE6OTIwOWQ0YTVlMjVhNDU3ZmI5YjA3NDg5ZDMxM2I0MWE=' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=authorization_code' \
--data-urlencode 'code={{code_from_step_2}}'
curl --location --request POST 'https://account-public-service-prod.ol.epicgames.com/account/api/public/account/{{your_account_id}}/deviceAuth' \
--header 'Authorization: Bearer {{bearer_token_from_step_3}}'
device_auths.json
with your email as json key.However even after doing so and creating the device_auths.json
file, when running the claimer.js, it was still asking for exchange code.
As a work around, i got the exchange code from following instructions here and tweaked the code in claimer.js
as shown in the screenshot.
Not sure if this is all the effort, but for someone who is looking for a quick fix this will work. Hope this helps!
Wow I didn't know https://github.com/MixV2/EpicResearch exists. Thanks for document @aneem, it helps :).
I also have the same issue with DeviceAuthGenerator-issue3 and with the document, I think I fixed the issue. Will push a patch to my fork after I do more test.
I fixed the issue with DeviceAuthGenerator here: https://github.com/xMistt/DeviceAuthGenerator/issues/3#issuecomment-924350309
I think we can continue to use this method to export the tokens.
Well, if we can make the fnbrjs
library working, we no longer have to rely on third party apps, or abandoned libraries. :)
@Revadike after generating device_auths.json from my account keeps asking me to provide an exchange code for the email
?
@Revadike after generating device_auths.json from my account keeps asking me to provide an exchange code for the email
?
Is it in the right folder?
@Revadike yes data folder
@Revadike after generating device_auths.json from my account keeps asking me to provide an exchange code for the email ?
Is it in the right folder? Experiencing the same problem The program prompts are as follows:
To generate device auth, please provide an exchange code for the email:example@example.com
screenshot of the error codes
Make sure all your installations are up-to-date. Please don't hijack this issue.
Current Behavior (if any)
Desired Behavior
Get the available
device_auths.json
fileMotivation / Use Case for Changing the Behavior
Normal deployment and use of EpicGames Freebies Claimer