lighty-auth
Overview
Quick Start
[dependencies]
lighty-auth = "0.8.6"Offline Authentication
use lighty_auth::{offline::OfflineAuth, Authenticator};
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let mut auth = OfflineAuth::new("PlayerName");
#[cfg(feature = "events")]
let profile = auth.authenticate(None).await?;
#[cfg(not(feature = "events"))]
let profile = auth.authenticate().await?;
println!("Username: {}", profile.username);
println!("UUID: {}", profile.uuid);
Ok(())
}Microsoft Authentication
Authentication Providers
Provider
Status
Network
Use Cases
Features
Documentation
Guide
Description
Related Crates
License
Last updated