# @pyrondev/dash-auth

> Authentication system for dash

Latest version **1.2.3** (published 2023-05-27) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install @pyrondev/dash-auth
pnpm add @pyrondev/dash-auth
yarn add @pyrondev/dash-auth
bun add @pyrondev/dash-auth
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.3 |
| Published | 2023-05-27 |
| First published | 2023-01-07 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 23.1 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | pyrondev |
| Maintainers | titushm |
| Keywords | authentication, dash |

## Links

- npm: https://www.npmjs.com/package/@pyrondev/dash-auth
- Repository: https://github.com/PyronDev/dash-auth
- Homepage: https://github.com/PyronDev/dash-auth#readme
- Issues: https://github.com/PyronDev/dash-auth/issues
- npm.io page: https://npm.io/package/@pyrondev/dash-auth

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.21.4
- [prismarine-auth](https://npm.io/package/prismarine-auth.md) ^2.2.0
- [follow-redirects](https://npm.io/package/follow-redirects.md) ^1.15.1
- [@xboxreplay/xboxlive-auth](https://npm.io/package/@xboxreplay/xboxlive-auth.md) ^4.0.0

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.2.3 (latest) — 2023-05-27
- 1.2.2 — 2023-05-27
- 1.2.1 — 2023-05-14
- 1.2.0 — 2023-05-05
- 1.1.0 — 2023-03-06
- 1.0.9 — 2023-03-06
- 1.0.8 — 2023-01-07
- 1.0.7 — 2023-01-07
- 1.0.6 — 2023-01-07
- 1.0.5 — 2023-01-07

## README

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

---
_Source: https://npm.io/package/@pyrondev/dash-auth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
