-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get login user's XUID #11
Comments
Hi, what's your objective ? I think it was removed from the current README, but this information is returned after you do a call to {
userXUID: string,
userHash: string,
XSTSToken: string,
expiresOn: number
} If you need a token for minecraft bedrock, the |
const { Authflow } = require('prismarine-auth'); const doAuth = async() => { doAuth() After I change like this,still have not get the XUID from response |
What do you get in the response ? For bedrock, you need to provide a seperate keypair like in the docs here - https://github.com/PrismarineJS/prismarine-auth/blob/master/examples/bedrock/deviceCode.js If you just want the XUID you can just call const { Authflow } = require('prismarine-auth')
const flow = new Authflow()
flow.getXboxToken().then(console.log) see https://github.com/PrismarineJS/prismarine-auth/blob/master/docs/API.md |
This is my code const doAuth = async() => { doAuth() respone (node:224) UnhandledPromiseRejectionWarning: Error: username is required |
Please specify a username and caching dir for now until the master branch is released on npm const { Authflow } = require('prismarine-auth')
const flow = new Authflow('username', './')
flow.getXboxToken().then(console.log) |
I didn't get any response |
(node:2172) UnhandledPromiseRejectionWarning: XboxReplayError: Could not exchange "userToken", please double check the specified "XSTSRelyingParty" or refer to https://bit.ly/xr-xbl-auth-user-token-issue |
This is fixed in #13. Try: npm i prismarinejs/prismarine-auth#docs then see if you get the same error |
I got the response like this [msa] First time signing in. Please authenticate now: code const doAuth = async () => { const flow = await new Authflow('whes1015@gmail.com', './caches/') } doAuth() |
I was asked to log in twice and got the same reply [msa] First time signing in. Please authenticate now: |
I just want XUID, is there any other way to get it? I just want XUID,thanks |
This is not a support forum, please discuss on Discord. You need to install it from git to get the latest update which fixes your issue. npm install prismarinejs/prismarine-auth per discord conversation, for future reference, the issue was const { Authflow, Titles } = require('prismarine-auth')
const flow = new Authflow('', './', { authTitle: Titles.MinecraftNintendoSwitch, relyingParty: 'http://xboxlive.com' })
flow.getXboxToken().then(console.log) |
Versions
Clear question
A clear question, with as much context as possible.
What are you building? What problem are you trying to solve?
What did you try yet?
Did you try any method from the API?
Did you try any example? Any error from those?
Your current code
Please put here any custom code you tried yet.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: