Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Authon Swift SDK

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

WebsiteDocsDiscordStatus


Requirements

  • Swift 5.7+, macOS 12+ / iOS 15+
  • No external dependencies (uses Foundation URLSession)

Installation

Swift Package Manager

.package(url: "https://github.com/authonpro/sdk-swift", from: "1.0.0")

Or copy Authon.swift into your Xcode project.

Quick Start

import Foundation

let auth = Authon(appId: "your-app-id", apiKey: "your-api-key")

Task {
    await auth.initialize()
    let result = await auth.login(username: "user", password: "pass")
    if result.success {
        print("Level: \(auth.level)")
    }
    await auth.logout()
}

Links

License

MIT

About

Authon Swift SDK - Authentication & licensing for macOS/iOS apps (SwiftPM)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages