14 releases (9 breaking)

0.10.1 Apr 24, 2024
0.9.1 Apr 19, 2024
0.9.0 Dec 5, 2023
0.8.0 Sep 15, 2023
0.4.0 Nov 19, 2022

#226 in Authentication

Download history 6/week @ 2024-02-14 37/week @ 2024-02-21 13/week @ 2024-02-28 11/week @ 2024-03-06 15/week @ 2024-03-13 7/week @ 2024-03-20 19/week @ 2024-03-27 21/week @ 2024-04-03 160/week @ 2024-04-17 374/week @ 2024-04-24 14/week @ 2024-05-01

548 downloads per month
Used in 3 crates

MIT license

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

~12–27MB
~392K SLoC