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

#258 in Games

Download history 40/week @ 2024-09-23 31/week @ 2024-09-30 2/week @ 2024-10-07 6/week @ 2024-10-14 198/week @ 2024-10-21 14/week @ 2024-10-28 36/week @ 2024-11-04 4/week @ 2024-11-11 56/week @ 2024-11-18 5/week @ 2024-11-25 32/week @ 2024-12-02 58/week @ 2024-12-09 144/week @ 2024-12-16 22/week @ 2024-12-23 3/week @ 2024-12-30 28/week @ 2025-01-06

201 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

~14–26MB
~373K SLoC