1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 14:26:04 +00:00
azalea/azalea-auth
2025-03-13 17:03:42 -05:00
..
examples Auth Customization Options (#159) 2024-08-11 16:54:45 -05:00
src don't remove LocalEntity from disconnected players, add new debug logs, and make GameProfile clones cheaper 2025-02-24 03:55:29 +00:00
Cargo.toml cleanup, fix warnings 2025-02-02 21:17:28 +00:00
README.md update dead wiki.vg links (#209) 2025-03-13 17:03:42 -05: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 contributors, Overhash, and prismarine-auth contributors.