Skip to content
This repository has been archived by the owner on Mar 21, 2021. It is now read-only.

WebLogOn implementation for node-steam 1.x **NO LONGER MAINTAINED**

License

Notifications You must be signed in to change notification settings

alex7kom/node-steam-weblogon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steam WebLogOn

WebLogOn implementation for node-steam 1.x.

Installation

npm install steam-weblogon

Usage

Instantiate a SteamWebLogOn object.

var SteamWebLogOn = require('steam-weblogon');
var steamWebLogOn = new SteamWebLogOn(steamClient, steamUser);

Here steamClient is a SteamClient instance and steamUser is a SteamUser instance.

Call webLogOn after log in, for example in callback of logOnResponse event of steamClient:

steamClient.on('logOnResponse', function(logonResp) {
  if (logonResp.eresult == Steam.EResult.OK) {
    steamWebLogOn.webLogOn(function(webSessionID, cookies){
      ...
    });
  }
});

API

Methods

webLogOn(callback)

Logs into Steam Community. You only need this if you know you do. callback will be called with your new webSessionID and an array of your new cookies (as strings).

Feel free to call this whenever you need to refresh your web session - for example, if you log into the same account from a browser on another computer.

License

The original implementation by seishun is from node-steam#182.

MIT

About

WebLogOn implementation for node-steam 1.x **NO LONGER MAINTAINED**

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published