npm

@tbhmens/steam-auth

1.0.7 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @tbhmens/steam-auth

Weekly Downloads

1

Version

1.0.7

License

none

Unpacked Size

3.58 kB

Total Files

4

Last publish

Collaborators

  • esthe