Skip to content

Instantly share code, notes, and snippets.

Avatar

Lukas Scheuerle Plagiatus

View GitHub Profile
@Plagiatus
Plagiatus / ms_auth_class.ts
Created Sep 12, 2021
A basic implementation for a full flow of Microsoft-Login -> Minecraft Auth + Player Info. No error handling included for easier understandability.
View ms_auth_class.ts
import { XMLHttpRequest } from "xmlhttprequest";
interface AuthorizationTokenResponse {
token_type: string,
expires_in: number,
scope: string,
access_token: string,
refresh_token: string,
user_id: string,
foci: string