Skip to content

Basic steam authentication and user information interface for electron apps.

Notifications You must be signed in to change notification settings

Sortiarius/electron-steam

Repository files navigation

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){
    user: SteamUser | null;
    token: ElectronSteamProfileToken | null;
    authenticate: (
        next?: ElectronSteamNextFunction, 
        options?: AuthenticationOptions
    ): Promise<void> => {};
};

About

Basic steam authentication and user information interface for electron apps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors