15 releases (9 breaking)

0.10.3+mc1.21.1 Oct 23, 2024
0.10.1 Apr 24, 2024
0.9.1 Apr 19, 2024
0.9.0 Dec 5, 2023
0.4.0 Nov 19, 2022

#194 in Games

Download history 13/week @ 2024-08-02 2/week @ 2024-08-09 1/week @ 2024-08-16 5/week @ 2024-09-13 33/week @ 2024-09-20 28/week @ 2024-09-27 13/week @ 2024-10-04 5/week @ 2024-10-11 174/week @ 2024-10-18 33/week @ 2024-10-25 32/week @ 2024-11-01 12/week @ 2024-11-08 8/week @ 2024-11-15

109 downloads per month
Used in 3 crates

MIT license

84KB
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–25MB
~363K SLoC