Offline Authentication
Overview
Features
Quick Start
use lighty_auth::{offline::OfflineAuth, Authenticator};
#[tokio::main]
async fn main() {
let mut auth = OfflineAuth::new("Steve");
let profile = auth.authenticate().await?;
println!("Username: {}", profile.username);
println!("UUID: {}", profile.uuid);
println!("Access Token: {:?}", profile.access_token); // None
Ok(())
}Username Validation Rules
Length Requirements
Character Requirements
UUID Generation
Algorithm
Properties
Examples
UserProfile Output
Event System Integration
Error Handling
Use Cases
1. Development and Testing
2. LAN Multiplayer
3. Fallback Authentication
Limitations
No Token Management
Not Suitable for Online Servers
Performance
Best Practices
Username Input Validation
UUID Caching
Testing
Last updated