insomnia-plugin-valorant
Version:
Adds template tags to Insomnia with Valorant data
18 lines • 784 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRiotClientConfig = void 0;
const node_fetch_1 = __importDefault(require("node-fetch"));
async function getRiotClientConfig(token, entitlement) {
return (await (await (0, node_fetch_1.default)('https://clientconfig.rpg.riotgames.com/api/v1/config/player?app=Riot%20Client', {
headers: {
'User-Agent': '',
'Authorization': `Bearer ${token}`,
'X-Riot-Entitlements-JWT': entitlement
}
})).json());
}
exports.getRiotClientConfig = getRiotClientConfig;
//# sourceMappingURL=get-riot-client-config.js.map