steamutils 1.3.63 → 1.3.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +10 -0
- package/package.json +1 -1
package/index.js
CHANGED
@@ -6416,6 +6416,10 @@ export default class SteamUser {
|
|
6416
6416
|
const community = new SteamCommunity();
|
6417
6417
|
community.setCookies(cookie.toString().split(";"));
|
6418
6418
|
community.oAuthToken = accessToken;
|
6419
|
+
try {
|
6420
|
+
community.setMobileAppAccessToken(accessToken);
|
6421
|
+
} catch (e) {}
|
6422
|
+
|
6419
6423
|
error = await new Promise((resolve) => {
|
6420
6424
|
community.acceptConfirmationForObject(identitySecret, objectID, resolve);
|
6421
6425
|
});
|
@@ -6436,6 +6440,9 @@ export default class SteamUser {
|
|
6436
6440
|
const community = new SteamCommunity();
|
6437
6441
|
community.setCookies(cookie.toString().split(";"));
|
6438
6442
|
community.oAuthToken = accessToken;
|
6443
|
+
try {
|
6444
|
+
community.setMobileAppAccessToken(accessToken);
|
6445
|
+
} catch (e) {}
|
6439
6446
|
const time = SteamTotp.time();
|
6440
6447
|
const key = SteamTotp.getConfirmationKey(identitySecret, time, "conf");
|
6441
6448
|
// err.message === "Not Logged In";
|
@@ -6465,6 +6472,9 @@ export default class SteamUser {
|
|
6465
6472
|
const community = new SteamCommunity();
|
6466
6473
|
community.setCookies(cookie.toString().split(";"));
|
6467
6474
|
community.oAuthToken = accessToken;
|
6475
|
+
try {
|
6476
|
+
community.setMobileAppAccessToken(accessToken);
|
6477
|
+
} catch (e) {}
|
6468
6478
|
error = await new Promise((resolve) => {
|
6469
6479
|
community.finalizeTwoFactor(identitySecret, finalizeTwoFactorCode, resolve);
|
6470
6480
|
});
|