1.0.1 • Published 3 years ago
@hornta/minecraft-toolkit v1.0.1
Minecraft Toolkit
A toolset for efficient Minecraft development in JavaScript.
Get started
npm install @hornta/minecraft-toolkit
import { AuthenticationService } from '@hornta/minecraft-toolkit';
void (async() => {
const authService = new AuthenticationService();
const userAuth = authService.createUserAuthentication();
userAuth.setUsername("my@email.com");
userAuth.setPassword("myPassword");
await userAuth.logIn();
const accessToken = userAuth.getAuthenticationToken();
console.log("Access token: " + accessToken)
})();
License
MIT License.