20 releases (breaking)
Uses new Rust 2024
| 0.15.0+mc1.21.11 | Dec 19, 2025 |
|---|---|
| 0.14.0+mc1.21.8 | Sep 28, 2025 |
| 0.13.0+mc1.21.5 | Jun 16, 2025 |
| 0.11.0+mc1.21.4 | Dec 21, 2024 |
| 0.4.0 | Nov 19, 2022 |
#500 in Email
131 downloads per month
Used in 6 crates
(5 directly)
97KB
2K
SLoC
azalea-auth
A port of Mojang's Authlib and launcher authentication.
The default location of Azalea's cache is at ~/.minecraft/azalea-auth.json.
You can delete or modify this file if you'd like to associate a cache key (usually an email) with a different account.
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.
Dependencies
~15–32MB
~382K SLoC