A library to handle Steam authentication with OpenID, for your Electron app.
$ npm install --save electron-steam-openid
const electronSteamAuth = require('electron-steam-openid');
var config = {
redirectUri: 'http://localhost'
};
app.on('ready', () => {
const windowParams = {
alwaysOnTop: true,
autoHideMenuBar: true,
webPreferences: {
nodeIntegration: false
}
}
const auth = electronSteamAuth(config, windowParams);
auth.authenticate(options)
.then(token => {
// use your token.steam_id
});
});
Type: Object
Sets custom openid.RelyingParty() params
Type: Object
An object that will be used to create the BrowserWindow. Details: Electron BrowserWindow documention
Returns a Promise
that gets resolved with the authorization details of the OpenID authorization request.
MIT