npm install @tbhmens/steam-auth --save
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);
});