Sign in with Xbox, the easy way
This is a demo app built on XAuth. Sign in with your Microsoft account and you'll see exactly what your own app would receive: the user's Xbox Live profile as JSON.
It worked! Date of birth and the owner XUID are redacted here; your app gets every field.
Saved in this browser only, until .
Codes are single-use and expire quickly, so the usual fix is simply to sign in again. Accounts that have never signed in to Xbox Live have no profile to return.
You'll be sent to Microsoft to sign in, then straight back here.
-
• Step 1
The button sends the user to your app's XAuth URL (https://auth.xauth.app), which forwards them to Microsoft's sign-in page.
-
• Step 2
After they sign in, Microsoft sends them back to your redirect URL with a one-time ?code=.
-
• Step 3
Your server swaps that code for the Xbox Live profile with one request:
POST https://claim.xauth.dev
Content-Type: application/json
Accept: application/json
{
"app_id": "9dc1becf-1baa-464d-a237-74e2d09e1066",
"secret": "YOUR_APP_SECRET",
"code": "THE_CODE_FROM_THE_QUERY_STRING"
}
Want this for your own app? Start a free 30-day trial · Read the setup guide