#minecraft #port #launcher #mojang #authentication #mat #azalea

cerberos

A port of Mat's azalea-auth port of Mojang's Authlib and launcher authentication

2 releases

0.8.1 Feb 18, 2024
0.8.0 Jan 23, 2024

#837 in Games

MIT license

80KB
2K SLoC

cerberos

A port of Mat's azalea-auth port of Mojang's Authlib and launcher authentication.

Examples

use std::path::PathBuf;

#[tokio::main]
async fn main() {
    let cache_file = PathBuf::from("example_cache.json");

    let auth_result = azalea_auth::auth(
        "example@example.com",
        azalea_auth::AuthOpts {
            cache_file: Some(cache_file),
            ..Default::default()
        },
    )
    .await
    .unwrap();
    println!("{auth_result:?}");
}

Thanks to wiki.vg contributors, Overhash, and prismarine-auth contributors.

dxxxxy and doubtttt were here.

Dependencies

~12–25MB
~366K SLoC