npm.io
1.2.3 • Published 3 years ago

@pyrondev/dash-auth

Licence
MPL-2.0
Version
1.2.3
Deps
4
Size
23 kB
Vulns
23
Weekly
0

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

Keywords