Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1) (GET) https://www.epicgames.com/id/api/csrf
- 2) Take xsrf-token from cookie response from (1)
- (POST) https://www.epicgames.com/id/api/login
- Headers:
- "x-xsrf-token" : "from csrf cookie"
- "Content-Type" : "application/x-www-form-urlencoded"
- Body:
- email: "xxx"
- password: "xxx"
- rememberMe: true/false (NOT STRING!!!)
- 3) (GET) https://www.epicgames.com/id/api/redirect
- Header:
- "x-xsrf-token" : "same as previously"
- "Referer" : https://www.epicgames.com/id/login
- 4) (GET) https://www.epicgames.com/id/api/authenticate
- - This step might not be needed..:
- 5) (GET) https://www.epicgames.com/id/api/exchange
- Header:
- "x-xsrf-token" : "same as previously"
- > This returns a "code"
- 6) (POST) https://account-public-service-prod03.ol.epicgames.com/account/api/oauth/token
- Headers:
- "Content-Type" : "application/x-www-form-urlencoded"
- "Authorization" : "basic MzQ0NmNkNzI2OTRjNGE0NDg1ZDgxYjc3YWRiYjIxNDE6OTIwOWQ0YTVlMjVhNDU3ZmI5YjA3NDg5ZDMxM2I0MWE=" (LAUNCHER TOKEN WINDOWS)
- Body:
- "grant_type" : "exchange_code"
- "exchange_code" : "code from earlier step"
- "includePerms" : true/false
- "token_type" : "eg1"
- > returns the access token just like before
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement