node-minecraft-protocol/examples/client_electron/renderer/index.html
extremeheat 8f2a027812
Msa device code auth (#806)
* initial msa work

* rm debug code

* Update package.json

* lint, seperate constants, create missing msa cache

* support multiple profiles

* lint

* use shared constants

* fix path issues

* fix token variable

* fix caching msa profile data

* switch clientId to one from microsoft

* store caches in .minecraft, fallback to dev code auth when user+pass fails

* update electron demo, fix error handling, add docs

* fix caching dir

* fix lint

* move to class scope, token fixes

* retry on fail, terminology fixes

* fix promise bug

* cleanup
2021-01-30 01:21:03 +01:00

27 lines
833 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>client electron</title>
</head>
<body>
<div>
<p>Host: <input type="text" id="host" value="localhost" /></p>
<p>Port: <input type="text" id="port" value="25565"/></p>
<p>Account Type: <select onchange="onAuthTypeChange()" id='type'><option>Microsoft</option><option>Mojang</option></select></p>
<p>Username: <input type="text" id="username" value="electron_client" /></p>
<p>Password: <input type="text" id="password" value="" /></p>
</div>
<button id="connect" type="button">Connect</button><br />
<div id="content">Not connected</div> <br />
Message: <input type="text" id="chat" /><br />
<button id="send" type="button">Send</button><br />
<script src="./index.js"></script>
</body>
</html>