steamutils 1.0.21 → 1.0.22
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/SteamClient.js +3 -1
- package/package.json +1 -1
package/SteamClient.js
CHANGED
@@ -595,11 +595,13 @@ function SteamClient({
|
|
595
595
|
cookie,
|
596
596
|
}
|
597
597
|
}))?.data
|
598
|
-
if (result) {
|
598
|
+
if (result?.logged_in) {
|
599
599
|
Object.assign(result, {
|
600
600
|
steamID: new SteamID(result.steamid), accountName: result.account_name, webLogonToken: result.token
|
601
601
|
})
|
602
602
|
steamClient.logOn(result)
|
603
|
+
} else {
|
604
|
+
console.log('You are not logged in', cookie)
|
603
605
|
}
|
604
606
|
} else if (username && password) {
|
605
607
|
console.log(`login with username ${username}`)
|