Support xbox title + live.com auth (#86)
* preliminary support for xbox title + live.com auth * cleanup * export title list * add to api docs * Verify that minecraft token has titleId if did titleAuth * Minor changes
This commit is contained in:
parent
f644595b4b
commit
76febb29f1
12 changed files with 371 additions and 34 deletions
|
|
@ -13,6 +13,7 @@ Returns a `Client` instance and connects to the server.
|
|||
| version | *optional* | Version to connect as. <br/>(Future feature, see [#69][1]) If not specified, should automatically match server version. <br/>(Current feature) Defaults to latest version. |
|
||||
| offline | *optional* | default to **false**. Set this to true to disable Microsoft/Xbox auth. |
|
||||
| username | Conditional | Required if `offline` set to true : Username to connect to server as. |
|
||||
| authTitle | *optional* | The title ID to connect as, see the README for usage. |
|
||||
| connectTimeout | *optional* | default to **9000ms**. How long to wait in milliseconds while trying to connect to server. |
|
||||
| onMsaCode | *optional* | Callback called when signing in with a microsoft account with device code auth, `data` is an object documented [here](https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth2-device-code#device-authorization-response) |
|
||||
| profilesFolder | *optional* | Where to store cached authentication tokens. Defaults to .minecraft, or the node_modules folder if not found. |
|
||||
|
|
|
|||
|
|
@ -4,4 +4,7 @@ This issue occurs due to loopback restrictions on Windows 10 UWP apps. To lift t
|
|||
|
||||
```ps
|
||||
CheckNetIsolation LoopbackExempt -a -n="Microsoft.MinecraftUWP_8wekyb3d8bbwe"
|
||||
```
|
||||
```
|
||||
## Kicked during login
|
||||
|
||||
Some servers can kick you if you don't set `authTitle` as explained in the README.
|
||||
Loading…
Add table
Add a link
Reference in a new issue