Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Authon Rust SDK

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

WebsiteDocsDiscordStatus


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

About

Authon Rust SDK - Safe authentication, licensing & session management for Rust

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages