You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds entitlement and profile checking, fixes other complaints (#7)
* entitlements and profile
* fix relyingParty sometimes undefined
* remove Endpoints from index
* fix lint
* stop trying to commit my cache
* examples
* await the await
* spice up the readme!
* lint examples
* Move options to function parameter
* update example
* lint
* stupid typescript
* remove jsdoc
Copy file name to clipboardExpand all lines: README.md
+41-92Lines changed: 41 additions & 92 deletions
Original file line number
Diff line number
Diff line change
@@ -11,121 +11,70 @@ Quickly and easily obtain an xbox token to authenticate with Minecraft/Mojang
11
11
npm install prismarine-auth
12
12
```
13
13
14
-
## Getting A Minecraft Java Token
14
+
## Usage
15
15
16
-
### Device Code Authentication
17
-
```js
18
-
const { Authflow } =require('prismarine-auth');
16
+
**Parameters**
17
+
- username {String} - Username for authentication
18
+
- cacheDirectory {String} - Where we will store your tokens
19
+
- options {Object?}
20
+
-[password] {string} - If passed we will do password based authentication.
21
+
-[authTitle] {string} - Required to switch to live.com authentication and do title authentication. Needed for accounts with a date of birth under 18 years old.
22
+
- onMsaCode {Function} - What we should do when we get the code. Useful for passing the code to another function.
- cacheDirectory {String} - Where we will store your tokens
128
-
- options {Object?}
129
-
-[password] {string} - If passed we will do password based authentication.
130
-
-[authTitle] {string} - Required to switch to live.com authentication and do title authentication. Needed for accounts with a date of birth under 18 years old.
131
-
- onMsaCode {Function} - What we should do when we get the code. Useful for passing the code to another function.
0 commit comments