Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.16 KB

README.md

File metadata and controls

60 lines (44 loc) · 1.16 KB

Authon Rust SDK

Authon
Official Rust SDK for Authon — Software Licensing & Authentication Platform

Website • Docs • Discord • Status


Installation

Add to Cargo.toml:

[dependencies]
authon = { git = "https://github.com/authonpro/sdk-rust" }

Quick Start

use authon::Authon;

fn main() {
    let mut auth = Authon::new("your-app-id", "your-api-key");
    auth.init().unwrap();

    let result = auth.login("username", "password", None).unwrap();
    if result.success {
        println!("Level: {}", auth.level);
    }

    auth.logout().unwrap();
}

Run Example

cargo run --example basic

Links

License

MIT