#azalea #minecraft-bot #await

azalea-auth

A port of Mojang's Authlib and launcher authentication

17 releases (11 breaking)

Uses new Rust 2024

new 0.12.0+mc1.21.5 Apr 13, 2025
0.11.0+mc1.21.4 Dec 21, 2024
0.10.3+mc1.21.1 Oct 23, 2024
0.10.1 Apr 24, 2024
0.4.0 Nov 19, 2022

#389 in Authentication

Download history 151/week @ 2024-12-18 12/week @ 2024-12-25 5/week @ 2025-01-01 42/week @ 2025-01-08 8/week @ 2025-01-15 4/week @ 2025-01-29 25/week @ 2025-02-05 15/week @ 2025-02-12 50/week @ 2025-02-19 47/week @ 2025-02-26 17/week @ 2025-03-05 33/week @ 2025-03-12 17/week @ 2025-03-26 22/week @ 2025-04-02

75 downloads per month
Used in 3 crates

MIT license

87KB
2K SLoC

Azalea Auth

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

Dependencies

~14–26MB
~382K SLoC