22 releases (breaking)

Uses new Rust 2024

0.16.0+mc26.1 Mar 28, 2026
0.15.0+mc1.21.11 Dec 19, 2025
0.14.0+mc1.21.8 Sep 28, 2025
0.13.0+mc1.21.5 Jun 16, 2025
0.4.0 Nov 19, 2022

#668 in Email

Download history 45/week @ 2026-01-23 24/week @ 2026-01-30 11/week @ 2026-02-06 138/week @ 2026-02-13 84/week @ 2026-02-20 189/week @ 2026-02-27 283/week @ 2026-03-06 243/week @ 2026-03-13 227/week @ 2026-03-20 229/week @ 2026-03-27 271/week @ 2026-04-03 533/week @ 2026-04-10 233/week @ 2026-04-17 160/week @ 2026-04-24 361/week @ 2026-05-01 154/week @ 2026-05-08

1,050 downloads per month
Used in 6 crates (4 directly)

MIT license

95KB
2K SLoC

azalea-auth

A port of Mojang's Authlib and launcher authentication.

The default location of Azalea's cache is at ~/.minecraft/azalea-auth.json. You can delete or modify this file if you'd like to associate a cache key (usually an email) with a different account.

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 contributors, Overhash, and prismarine-auth contributors.

Dependencies

~14–32MB
~398K SLoC