Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Alex7Kom/node-steam-weblogon
WebLogOn implementation for node-steam 1.x **NO LONGER MAINTAINED**
https://github.com/Alex7Kom/node-steam-weblogon
javascript nodejs steam
Last synced: 3 months ago
JSON representation
WebLogOn implementation for node-steam 1.x **NO LONGER MAINTAINED**
- Host: GitHub
- URL: https://github.com/Alex7Kom/node-steam-weblogon
- Owner: alex7kom
- License: mit
- Archived: true
- Created: 2015-07-17T14:26:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-01-28T17:29:29.000Z (almost 5 years ago)
- Last Synced: 2024-05-06T14:35:36.594Z (6 months ago)
- Topics: javascript, nodejs, steam
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 27
- Watchers: 7
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-steam - steam-weblogon - Retrieve SteamCommunity cookies if you are running Steam network client. (Packages / Node.js)
README
# Steam WebLogOn
WebLogOn implementation for [node-steam](https://github.com/seishun/node-steam) 1.x.
# Installation
```
npm install steam-weblogon
```# Usage
Instantiate a `SteamWebLogOn` object.
```js
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`:
```js
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](https://github.com/seishun/node-steam/issues/182#issuecomment-122006314).
MIT