@tbhmens/steam-auth
v1.0.7
Published
An easy steam openid api. Forked from https://github.com/eagle21st/SteamWebAPI.
Downloads
45
Readme
Steam Auth
Install
npm install @tbhmens/steam-auth --save
Usage
Initialize SteamAuth:
const SteamAuth = require("@tbhmens/steam-auth");
const auth = new SteamAuth(<verify_callback_url>, <realm>);
Handle login request from user:
auth.getAuthUrl().then(url=>res.redirect(url));
Handle steam callback request:
auth.verify(req).then(steamId => {
console.log(steamId);
});