Expand description
Unofficial Xbox Live authentication, gamertag/XUID resolution, and profile client for Rust.
This crate is not affiliated with, endorsed by or supported by Microsoft.
§Quick start
Requires the default legacy-password-login feature.
use xbox::auth::LegacyPasswordProvider;
use xbox::{RelyingParty, XboxClient};
let provider = LegacyPasswordProvider::new("my-username", "my-password");
let client = XboxClient::new(provider);
let xuid = client.gamertag_to_xuid("Some Gamertag").await?;
let xsts = client.xsts_ticket(RelyingParty::XBOX).await?;
println!("xuid={xuid} xsts_expires_at={}", xsts.not_after);Re-exports§
pub use auth::RelyingParty;pub use client::XboxClient;pub use client::XboxEndpoints;pub use error::XboxError;