Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.12 KB

README.md

File metadata and controls

57 lines (41 loc) · 1.12 KB

Authon Zig SDK

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

Website • Docs • Discord • Status


Requirements

  • Zig 0.12+
  • No external dependencies (stdlib only)

Installation

Copy authon.zig into your project's src/ directory.

Quick Start

const authon = @import("authon.zig");

pub fn main() !void {
    var auth = authon.Authon.init("your-app-id", "your-api-key");
    try auth.connect();
    try auth.login("username", "password");
    std.debug.print("Level: {d}\n", .{auth.level});
    auth.logout();
}

Build & Run

zig build-exe src/example.zig
./example

Links

License

MIT