Skip to content

Instantly share code, notes, and snippets.

@LucienHH
LucienHH / index.js
Last active November 12, 2021 13:20
test
const doAuth = async () => {
const onMsaCode = (response) => { console.log(response) }
const flow = await new Authflow('whes1015', './caches/', { authTitle: '00000000447D1E48', relyingParty: 'http://xboxlive.com/' }, onMsaCode)
const { userXUID } = await flow.getXboxToken()
console.log(userXUID)
}
@LucienHH
LucienHH / index.js
Last active March 8, 2022 23:22
Get players in an Xbox club
const { Authflow } = require('prismarine-auth')
const axios = require('axios')
const CLUB_URL = 'https://clubhub.xboxlive.com/clubs/me/decoration/detail'
const PEOPLE_URL = 'https://peoplehub.xboxlive.com/users/me/people/batch/decoration/detail,presencedetail'
const flow = new Authflow()
async function main() {
@LucienHH
LucienHH / BedrockP2P.js
Created January 20, 2024 19:26
Standard peer-to-peer WebRTC connection via Minecraft Bedrock's signalling channel
const WebSocket = require('ws');
const { RTCPeerConnection } = require('werift');
const token = ""
const networkId = "";
const randomID = () => Math.floor(Math.random() * 10000000000000000000)
const sessionId = randomID()