This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { EventEmitter } from 'events'; | |
type EventTypes = Record<string | symbol, (...args: []) => void>; | |
/** | |
* Adds types to the following methods of {@link EventEmitter} | |
* * {@link EventEmitter.on} | |
* * {@link EventEmitter.off} | |
* * {@link EventEmitter.once} | |
* * {@link EventEmitter.emit} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Launcher } = require('epicgames-client'); | |
const request = require('request-promise'); | |
const deviceAuthCredentials = { | |
accountId: '', | |
deviceId: '', | |
secret: '', | |
}; | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const request = require('request-promise'); | |
const fs = require('fs').promises; | |
const BASE_URL = 'https://www.epicgames.com/id/api'; | |
const BASE_PROD = 'https://account-public-service-prod03.ol.epicgames.com/account/api/oauth'; | |
const DEVICE_AUTH = 'https://account-public-service-prod.ol.epicgames.com/account/api/public/account'; | |
const USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36'; | |
const IOS_TOKEN = 'MzQ0NmNkNzI2OTRjNGE0NDg1ZDgxYjc3YWRiYjIxNDE6OTIwOWQ0YTVlMjVhNDU3ZmI5YjA3NDg5ZDMxM2I0MWE='; | |
const LAUNCHER_TOKEN = 'MzRhMDJjZjhmNDQxNGUyOWIxNTkyMTg3NmRhMzZmOWE6ZGFhZmJjY2M3Mzc3NDUwMzlkZmZlNTNkOTRmYzc2Y2Y='; |