#minecraft #port #mojang #launcher #mat #authlib

cerberos

Mat的azalea-auth对Mojang的Authlib和启动器认证的移植。

2个版本

0.8.1 2024年2月18日
0.8.0 2024年1月23日

#455 in 认证

MIT 许可证

80KB
2K SLoC

cerberos

A port of Mat's azalea-auth port of Mojang's Authlib and launcher authentication.

示例

use std::path::PathBuf;

#[tokio::main]
async fn main() {
    let cache_file = PathBuf::from("example_cache.json");

    let auth_result = azalea_auth::auth(
        "[email protected]",
        azalea_auth::AuthOpts {
            cache_file: Some(cache_file),
            ..Default::default()
        },
    )
    .await
    .unwrap();
    println!("{auth_result:?}");
}

感谢 wiki.vg 贡献者Overhash,和 prismarine-auth 贡献者

dxxxxy和doubtttt在这里。

依赖项

~10–26MB
~382K SLoC