insomnia-plugin-valorant
Version:
Adds template tags to Insomnia with Valorant data
17 lines • 669 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getPASToken = void 0;
const node_fetch_1 = __importDefault(require("node-fetch"));
async function getPASToken(accessToken) {
return await (await (0, node_fetch_1.default)('https://riot-geo.pas.si.riotgames.com/pas/v1/service/chat', {
headers: {
'Authorization': 'Bearer ' + accessToken,
'User-Agent': ''
},
})).text();
}
exports.getPASToken = getPASToken;
//# sourceMappingURL=get-pas-token.js.map