Skip to content

Commit

Permalink
Pass machine_name to steam-session
Browse files Browse the repository at this point in the history
Fixes #486
  • Loading branch information
DoctorMcKay committed Sep 3, 2024
1 parent 7fb943c commit 48d9615
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions components/03-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,17 @@ class SteamUserMessages extends SteamUserConnection {

_getLoginSession() {
if (!this._loginSession) {
this._loginSession = new LoginSession(EAuthTokenPlatformType.SteamClient, {
let options = {
transport: new CMAuthTransport(this),
machineId: this._logOnDetails?.machine_id
});
};

let customMachineName = this._logOnDetails?.machine_name || '';
if (customMachineName.length > 0) {
options.machineFriendlyName = customMachineName;
}

this._loginSession = new LoginSession(EAuthTokenPlatformType.SteamClient, options);
}

return this._loginSession;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"protobufjs": "^7.2.4",
"socks-proxy-agent": "^7.0.0",
"steam-appticket": "^1.0.1",
"steam-session": "^1.7.0",
"steam-session": "^1.8.0",
"steam-totp": "^2.0.1",
"steamid": "^2.0.0",
"websocket13": "^4.0.0"
Expand Down

0 comments on commit 48d9615

Please sign in to comment.