cerberos

Crates.iocerberos
lib.rscerberos
version0.8.1
sourcesrc
created_at2024-01-23 06:42:10.827212
updated_at2024-02-18 05:12:15.576539
descriptionA port of Mat's azalea-auth port of Mojang's Authlib and launcher authentication.
homepage
repositoryhttps://github.com/mat-1/azalea/tree/main/azalea-auth
max_upload_size
id1110426
size38,067
Serhiy Fedurtsya (dxxxxy)

documentation

README

cerberos

A port of Mat's azalea-auth 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.

dxxxxy and doubtttt were here.

Commit count: 0

cargo fmt