mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-14 15:00:07 +08:00
Use custom user agent for logins
This commit is contained in:
parent
67867978f8
commit
b854d6d4d4
@ -1,3 +1,5 @@
|
||||
const {chrome} = require('@doctormckay/user-agents');
|
||||
|
||||
const SteamCommunity = require('../index.js');
|
||||
|
||||
/**
|
||||
@ -41,7 +43,10 @@ SteamCommunity.prototype._modernLogin = function(logOnDetails) {
|
||||
logOnDetails.disableMobile
|
||||
? EAuthTokenPlatformType.WebBrowser
|
||||
: EAuthTokenPlatformType.MobileApp,
|
||||
{localAddress: this._options.localAddress}
|
||||
{
|
||||
localAddress: this._options.localAddress,
|
||||
userAgent: this._options.userAgent || chrome()
|
||||
}
|
||||
);
|
||||
|
||||
session.on('authenticated', async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user