Crates.io | azalea-auth |
lib.rs | azalea-auth |
version | 0.10.3+mc1.21.1 |
source | src |
created_at | 2022-08-30 02:25:52.651101 |
updated_at | 2024-10-23 04:17:04.802337 |
description | A port of Mojang's Authlib and launcher authentication. |
homepage | |
repository | https://github.com/azalea-rs/azalea/tree/main/azalea-auth |
max_upload_size | |
id | 654884 |
size | 89,148 |
A 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(
"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.