#auth #minecraft #bot #minecraft-bot #launcher #mojang

azalea-auth

A port of Mojang's Authlib and launcher authentication

8 releases (5 breaking)

0.6.0 Feb 10, 2023
0.5.0 Dec 9, 2022
0.4.0 Nov 19, 2022
0.3.0 Oct 30, 2022
0.1.0 Aug 30, 2022

#157 in Authentication

Download history 15/week @ 2022-11-29 73/week @ 2022-12-06 26/week @ 2022-12-13 21/week @ 2022-12-20 25/week @ 2022-12-27 12/week @ 2023-01-03 22/week @ 2023-01-10 13/week @ 2023-01-17 24/week @ 2023-01-24 37/week @ 2023-01-31 82/week @ 2023-02-07 52/week @ 2023-02-14 65/week @ 2023-02-21 13/week @ 2023-02-28 18/week @ 2023-03-07 27/week @ 2023-03-14

136 downloads per month
Used in 3 crates (2 directly)

MIT license

68KB
1.5K 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

~9–17MB
~340K SLoC