NineAuthDocs
v1.0 Verified Core.NET 8 / C#

C# / .NET SDK

Official client library for Windows Forms, WPF, Console apps, and Unity games on .NET 8. Provides automatic HWID computation and synchronous & asynchronous authentication helpers.

Verified Core Features

The following core runtime APIs are fully verified and tested:

  • Registration & Login: Auth.RegisterAsync(), Auth.LoginAsync()
  • License Binding: Licenses.ActivateAsync()
  • Session Verification: Sessions.ValidateAsync()
  • Hardware Fingerprinting: DeviceFingerprint.Compute()
Program.cs
using NineAuth.Sdk;

var client = new NineAuthClient("app_pub_live_9f83a2...", "https://api.nineauth.xyz");

// 1. Authenticate user
var login = await client.Auth.LoginAsync(new LoginRequest
{
    Email = "user@example.com",
    Password = "UserPassword123!",
    Hwid = DeviceFingerprint.Compute()
});

// 2. Validate token on startup
var session = await client.Sessions.ValidateAsync(login.Token, DeviceFingerprint.Compute());
if (session.IsValid)
{
    Console.WriteLine("Authorized. Starting main application.");
}

Items Pending Verification

Documentation Note
The custom malformed nonce handling sample and the hard-delete snapshot export helper are currently pending end-to-end integration verification in upcoming waves. Rely on the verified core methods above for production workloads.

Related Links