()
| 350 | }); |
| 351 | |
| 352 | const generateClientId = () => { |
| 353 | const timestamp = Date.now(); |
| 354 | const randomNumbers = Array.from({ length: 19 }, () => Math.floor(Math.random() * 10)).join(''); |
| 355 | return `${timestamp}-${randomNumbers}`; |
| 356 | }; |
| 357 | |
| 358 | const login = async (clientId, appToken) => { |
| 359 | const response = await fetch('https://api.gamepromo.io/promo/login-client', { |
no outgoing calls
no test coverage detected