Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.08 KB

File metadata and controls

59 lines (43 loc) · 1.08 KB

Authon Ruby SDK

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

WebsiteDocsDiscordStatus


Requirements

  • Ruby 2.7+
  • No external gems required (uses stdlib net/http)

Installation

Copy authon.rb into your project:

require_relative 'authon'

Quick Start

auth = Authon.new('your-app-id', 'your-api-key')
auth.init

result = auth.login('username', 'password')
if result['success']
  puts "Level: #{auth.level}"
end
auth.logout

Run Example

ruby example.rb

Links

License

MIT