JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q45084F

An easy steam openid api. Forked from https://github.com/eagle21st/SteamWebAPI.

Package Exports

  • @tbhmens/steam-auth

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@tbhmens/steam-auth) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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);
});