This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const WebSocket = require('ws'); | |
const { RTCPeerConnection } = require('werift'); | |
const token = "" | |
const networkId = ""; | |
const randomID = () => Math.floor(Math.random() * 10000000000000000000) | |
const sessionId = randomID() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |