steamutils 1.3.96 → 1.3.97
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 +15 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5922,6 +5922,21 @@ export default class SteamUser {
|
|
|
5922
5922
|
let result = null;
|
|
5923
5923
|
let error = null;
|
|
5924
5924
|
|
|
5925
|
+
try {
|
|
5926
|
+
const checkLoginResult = await axios.request({
|
|
5927
|
+
url: "https://store.steampowered.com/account",
|
|
5928
|
+
headers: {
|
|
5929
|
+
Cookie: cookieManager.toString(),
|
|
5930
|
+
},
|
|
5931
|
+
});
|
|
5932
|
+
|
|
5933
|
+
if (checkLoginResult.request?.res?.responseUrl?.startsWith("https://store.steampowered.com/login/")) {
|
|
5934
|
+
break;
|
|
5935
|
+
}
|
|
5936
|
+
} catch (e) {
|
|
5937
|
+
error = e;
|
|
5938
|
+
}
|
|
5939
|
+
|
|
5925
5940
|
try {
|
|
5926
5941
|
result = await axios.request({
|
|
5927
5942
|
method: "post",
|