steamutils 1.3.96 → 1.3.97

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +15 -0
  2. 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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "steamutils",
3
- "version": "1.3.96",
3
+ "version": "1.3.97",
4
4
  "main": "index.js",
5
5
  "dependencies": {
6
6
  "alpha-common-utils": "^1.0.6",