#minecraft-bot #authentication #azalea

azalea-auth

A port of Mojang's Authlib and launcher authentication

16 releases (10 breaking)

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.9.0 Dec 5, 2023
0.4.0 Nov 19, 2022

#714 in Games

Download history 30/week @ 2024-11-30 38/week @ 2024-12-07 29/week @ 2024-12-14 156/week @ 2024-12-21 7/week @ 2024-12-28 23/week @ 2025-01-04 24/week @ 2025-01-11 6/week @ 2025-01-18 1/week @ 2025-01-25 23/week @ 2025-02-01 7/week @ 2025-02-08 36/week @ 2025-02-15 40/week @ 2025-02-22 41/week @ 2025-03-01 22/week @ 2025-03-08 21/week @ 2025-03-15

140 downloads per month
Used in 3 crates

MIT license

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

Dependencies

~13–26MB
~377K SLoC