@pyrondev/dash-auth
TypeScript icon, indicating that this package has built-in type declarations

1.2.3 • Public • Published

dash-auth

Used to authenticate with an xbox account for dash

Installation

npm install @pyrondev/dash-auth

Usage

Get the xsts token of an xbox account using username and password

Javascript (async)

const { comboAuthenticate } = require("@pyrondev/dash-auth");
(async () => {
	const dashAuth = await comboAuthenticate("email", "password");
	console.log(`XBL3.0 x=${dashAuth.user_hash};${dashAuth.xsts_token}`);
})(); // Async function needed so nodejs doesnt complain about the await

Javascript

const { comboAuthenticate } = require("@pyrondev/dash-auth");
comboAuthenticate("email", "password").then(dashAuth => {
	console.log(`XBL3.0 x=${dashAuth.user_hash};${dashAuth.xsts_token}`);
});

Readme

Keywords

Package Sidebar

Install

npm i @pyrondev/dash-auth

Weekly Downloads

0

Version

1.2.3

License

MPL-2.0

Unpacked Size

23.6 kB

Total Files

8

Last publish

Collaborators

  • titushm