# electron-steam

> Minimalist steam OpenAPI authentication for Electron.

Latest version **1.1.0** (published 2020-09-12) · ISC license · 0 weekly downloads

## Install

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

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-09-12 |
| First published | 2020-09-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 21.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | sortiarius |
| Keywords | electron, steam, openid |

## Links

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

## Dependencies (2)

- [openid](https://npm.io/package/openid.md) ^2.0.7
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2020-09-12
- 1.0.1 — 2020-09-10
- 1.0.0 — 2020-09-10

## README

# electron-steam
This library provides basic steam authentication for your electron app using OpenAPI.

## install
`$ npm install electron-steam`

## usage
```js
const steam = new ElectronSteam("your_token_here");
try{
    steam.authenticate((user, token) => {
        // use the user or the token.
    });
} catch (e){
    console.log(e);
}
```

## API

Note that the Token passed into the constructor and the `ElectronSteam.token` objects are not the same! The second is the authentication token returned by the OpenID request.
```typescript
ElectronSteam(APIToken:string){
    user: SteamUser | null;
    token: ElectronSteamProfileToken | null;
    authenticate: (
        next?: ElectronSteamNextFunction, 
        options?: AuthenticationOptions
    ): Promise<void> => {};
};
```

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