Skip to content

esthedebeste/steam-auth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%