electron-steam
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

electron-steam

This library provides basic steam authentication for your electron app using OpenAPI.

install

$ npm install electron-steam

usage

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.

ElectronSteam(APIToken:string){
    userSteamUser | null;
    tokenElectronSteamProfileToken | null;
    authenticate(
        next?: ElectronSteamNextFunction, 
        options?: AuthenticationOptions
    )Promise<void> => {};
};

Readme

Keywords

Package Sidebar

Install

npm i electron-steam

Weekly Downloads

2

Version

1.1.0

License

ISC

Unpacked Size

22.4 kB

Total Files

6

Last publish

Collaborators

  • sortiarius