steamutils 1.2.15 → 1.2.16
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 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1224,7 +1224,8 @@ class SteamUser {
|
|
|
1224
1224
|
return result?.data
|
|
1225
1225
|
const resultExample = {
|
|
1226
1226
|
"730": {
|
|
1227
|
-
"success": true,
|
|
1227
|
+
"success": true,
|
|
1228
|
+
"data": {
|
|
1228
1229
|
"type": "game",
|
|
1229
1230
|
"name": "Counter-Strike: Global Offensive",
|
|
1230
1231
|
"steam_appid": 730,
|
|
@@ -5908,6 +5909,19 @@ class SteamUser {
|
|
|
5908
5909
|
}
|
|
5909
5910
|
}
|
|
5910
5911
|
}
|
|
5912
|
+
|
|
5913
|
+
async deauthorizeAllDevices(){
|
|
5914
|
+
const response = await this._httpRequestAjax({
|
|
5915
|
+
url: `https://store.steampowered.com/twofactor/manage_action`,
|
|
5916
|
+
method: 'POST',
|
|
5917
|
+
data: {
|
|
5918
|
+
action: 'deauthorize'
|
|
5919
|
+
}
|
|
5920
|
+
})
|
|
5921
|
+
console.log(response.data);
|
|
5922
|
+
const example = {
|
|
5923
|
+
}
|
|
5924
|
+
}
|
|
5911
5925
|
}
|
|
5912
5926
|
|
|
5913
5927
|
export default SteamUser
|