# steam-weblogon

> Steam WebLogOn implementation

Latest version **0.0.6** (published 2020-01-28) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install steam-weblogon
pnpm add steam-weblogon
yarn add steam-weblogon
bun add steam-weblogon
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2020-01-28 |
| First published | 2015-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 29 |
| Author | Alexey Komarov |
| Maintainers | alex7kom |
| Keywords | steam |

## Links

- npm: https://www.npmjs.com/package/steam-weblogon
- Repository: https://github.com/Alex7Kom/node-steam-weblogon
- Homepage: https://github.com/Alex7Kom/node-steam-weblogon#readme
- Issues: https://github.com/Alex7Kom/node-steam-weblogon/issues
- npm.io page: https://npm.io/package/steam-weblogon

## Dependencies (2)

- [steam-crypto](https://npm.io/package/steam-crypto.md) 0.0.1
- [steam-web-api](https://npm.io/package/steam-web-api.md) 0.0.1

## Recent versions

- 0.0.6 (latest) — 2020-01-28
- 0.0.5 — 2016-08-06
- 0.0.4 — 2015-09-20
- 0.0.3 — 2015-07-17
- 0.0.2 — 2015-07-17
- 0.0.1 — 2015-07-17

## 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

---
_Source: https://npm.io/package/steam-weblogon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
