generated from PrismarineJS/prismarine-template
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Prismarine-Auth 1.0.0 * fix "nitpick" * Expose Commonly Used Endpoints For Other Packages * Make variable represent actual function * fix(password authentication) * oopsie
- Loading branch information
Showing
13 changed files
with
59 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
# XboxLive-Auth | ||
[![NPM version](https://img.shields.io/npm/v/prismarine-template.svg)](http://npmjs.com/package/prismarine-template) | ||
[![Build Status](https://github.com/PrismarineJS/prismarine-template/workflows/CI/badge.svg)](https://github.com/PrismarineJS/prismarine-template/actions?query=workflow%3A%22CI%22) | ||
# prismarine-auth | ||
[![NPM version](https://img.shields.io/npm/v/prismarine-auth.svg)](http://npmjs.com/package/prismarine-auth) | ||
[![Build Status](https://github.com/PrismarineJS/prismarine-auth/workflows/CI/badge.svg)](https://github.com/PrismarineJS/prismarine-auth/actions?query=workflow%3A%22CI%22) | ||
[![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/GsEFRM8) | ||
[![Try it on gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/PrismarineJS/prismarine-template) | ||
[![Try it on gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/PrismarineJS/prismarine-auth) | ||
|
||
Quickly and easily obtain an xbox token to authenticate with Minecraft/Mojang | ||
|
||
## Installation | ||
```shell | ||
npm install xboxlive-auth | ||
npm install prismarine-auth | ||
``` | ||
|
||
## Getting A Minecraft Java Token | ||
|
||
### Device Code Authentication | ||
```js | ||
const { Authflow } = require('@prismarinejs/xboxlive-auth'); | ||
const { Authflow } = require('prismarine-auth'); | ||
|
||
const doAuth = async() => { | ||
const flow = new Authflow('[email protected]', './') | ||
|
@@ -28,7 +28,7 @@ doAuth() | |
|
||
### Password-based Authentication | ||
```js | ||
const { Authflow } = require('@prismarinejs/xboxlive-auth'); | ||
const { Authflow } = require('prismarine-auth'); | ||
|
||
const doAuth = async() => { | ||
const flow = new Authflow('[email protected]', './', { password: 'thisIsAFakePassword123'}) | ||
|
@@ -45,7 +45,7 @@ This function handles logging into Xbox Live, posting its public key to the Moja | |
|
||
### Device Code Authentication | ||
```js | ||
const { Authflow } = require('@prismarinejs/xboxlive-auth'); | ||
const { Authflow } = require('prismarine-auth'); | ||
const crypto = require('crypto') | ||
const curve = 'secp384r1' | ||
|
||
|
@@ -61,7 +61,7 @@ doAuth() | |
|
||
### Password Authentication: | ||
```js | ||
const { Authflow } = require('@prismarinejs/xboxlive-auth'); | ||
const { Authflow } = require('prismarine-auth'); | ||
const crypto = require('crypto') | ||
const curve = 'secp384r1' | ||
|
||
|
@@ -80,7 +80,7 @@ doAuth() | |
|
||
### Device Code Authentication | ||
```js | ||
const { Authflow, Titles } = require('@prismarinejs/xboxlive-auth'); | ||
const { Authflow, Titles } = require('prismarine-auth'); | ||
const crypto = require('crypto') | ||
const curve = 'secp384r1' | ||
|
||
|
@@ -96,7 +96,7 @@ doAuth() | |
|
||
### Password Authentication | ||
```js | ||
const { Authflow , Titles} = require('@prismarinejs/xboxlive-auth'); | ||
const { Authflow , Titles} = require('prismarine-auth'); | ||
const crypto = require('crypto') | ||
const curve = 'secp384r1' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters