azalea/azalea-auth
2023-05-27 01:57:31 -05:00
..
examples add stuff related to chat signing 2023-05-26 15:18:04 -05:00
src random fixes mostly related to auth and crypto 2023-05-27 01:57:31 -05:00
Cargo.toml random fixes mostly related to auth and crypto 2023-05-27 01:57:31 -05:00
README.md Use an ECS (#52) 2023-02-04 19:32:27 -06:00

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.