Crates.io | cerberos |
lib.rs | cerberos |
version | 0.8.1 |
source | src |
created_at | 2024-01-23 06:42:10.827212 |
updated_at | 2024-02-18 05:12:15.576539 |
description | A port of Mat's azalea-auth port of Mojang's Authlib and launcher authentication. |
homepage | |
repository | https://github.com/mat-1/azalea/tree/main/azalea-auth |
max_upload_size | |
id | 1110426 |
size | 38,067 |
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(
"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.