Client Methods

CreateDefault()

Factory method that creates a pre-configured client with embedded server settings.

OrionAuth::Client client = OrionAuth::Client::CreateDefault();

No manual host/port/ssl configuration required.

Validate(apiKey, licenseKey)

Validates a license key against the Orion Auth API.

bool valid = client.Validate(apiKey, licenseKey);

Login(apiKey, username, password)

Authenticates with username and password credentials.

bool success = client.Login(apiKey, username, password);

Register(apiKey, username, password, licenseKey, email)

Creates a new user account with license key binding.

bool registered = client.Register(apiKey, username, password, licenseKey, email);

GetAppInfo(apiKey)

Retrieves application information including latest version.

bool info = client.GetAppInfo(apiKey);