MCPcopy Create free account
hub / github.com/ShafiqSadat/HamsterKeyGenWeb / login

Function login

script.js:358–377  ·  view source on GitHub ↗
(clientId, appToken)

Source from the content-addressed store, hash-verified

356 };
357
358 const login = async (clientId, appToken) => {
359 const response = await fetch('https://api.gamepromo.io/promo/login-client', {
360 method: 'POST',
361 headers: {
362 'Content-Type': 'application/json'
363 },
364 body: JSON.stringify({
365 appToken,
366 clientId,
367 clientOrigin: 'deviceid'
368 })
369 });
370
371 if (!response.ok) {
372 throw new Error('Failed to login');
373 }
374
375 const data = await response.json();
376 return data.clientToken;
377 };
378
379 const emulateProgress = async (clientToken, promoId) => {
380 const response = await fetch('https://api.gamepromo.io/promo/register-event', {

Callers 1

generateKeyProcessFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected