Open Sadzurami opened 2 days ago
Proposal: allow to pass account_name to logOn options.
Also proposal, but not related this issue: move functions like 'createMachineId' and 'createMachineName', which uses by
both SteamUser and SteamSession, to separate package, like @doctormckay/stdlib/hardware
or @doctormckay/steam-hardware
or smth like that. Main idea - keep consistency between packages, that consumes that functional.
Also proposal: allow to pass machine_id directly to logOn method, like it implemented in SteamSession options.
Describe the bug
For machine id creation SteamUser uses
account_name | steamid
, while SteamSession only usesaccount_name
as account identifier.When we logs using SteamUser with refresh token, instance will use
steamid
, we can't passaccount_name
. While SteamSession usedaccount_name
while refresh token was created.https://github.com/DoctorMcKay/node-steam-user/blob/686d773f88df373ed0e7be845a37c46dd081d9b1/components/09-logon.js#L122-L135
https://github.com/DoctorMcKay/node-steam-user/blob/686d773f88df373ed0e7be845a37c46dd081d9b1/resources/default_options.js#L26-L28
https://github.com/DoctorMcKay/node-steam-user/blob/686d773f88df373ed0e7be845a37c46dd081d9b1/components/09-logon.js#L581-L588
https://github.com/DoctorMcKay/node-steam-user/blob/686d773f88df373ed0e7be845a37c46dd081d9b1/components/09-logon.js#L598-L602
Versions
5.2.0