steamutils 1.3.96 → 1.3.97
Sign up to get free protection for your applications and to get access to all the features.
- 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",
|