11 releases (breaking)

0.9.0 Dec 5, 2023
0.8.0 Sep 15, 2023
0.7.0 May 17, 2023
0.6.0 Feb 10, 2023
0.4.0 Nov 19, 2022

#1 in #mojang

Download history 30/week @ 2023-11-04 44/week @ 2023-11-11 33/week @ 2023-11-18 59/week @ 2023-11-25 139/week @ 2023-12-02 145/week @ 2023-12-09 73/week @ 2023-12-16 66/week @ 2023-12-23 32/week @ 2023-12-30 44/week @ 2024-01-06 28/week @ 2024-01-13 23/week @ 2024-01-20 63/week @ 2024-01-27 22/week @ 2024-02-03 71/week @ 2024-02-10 225/week @ 2024-02-17

387 downloads per month
Used in 3 crates

MIT license

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

~11–26MB
~402K SLoC