20 releases (breaking)

Uses new Rust 2024

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.11.0+mc1.21.4 Dec 21, 2024
0.4.0 Nov 19, 2022

#500 in Email

Download history 59/week @ 2025-09-18 267/week @ 2025-09-25 91/week @ 2025-10-02 55/week @ 2025-10-09 49/week @ 2025-10-16 35/week @ 2025-10-23 17/week @ 2025-10-30 2/week @ 2025-11-06 2/week @ 2025-11-13 16/week @ 2025-11-20 5/week @ 2025-11-27 12/week @ 2025-12-04 14/week @ 2025-12-11 41/week @ 2025-12-18 35/week @ 2025-12-25 34/week @ 2026-01-01

131 downloads per month
Used in 6 crates (5 directly)

MIT license

97KB
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

~15–32MB
~382K SLoC