Skip to navigation

Register creates a username and password account from an unused license. It signs the new user in when the request succeeds. The developer’s app must already allow registration.

SDK version: V3 Beta. These examples use the current downloads. V1 and V2 use different APIs; choose them in the version selector.

Each example assumes app is the AuthlyX client you created in Connect your app. When a method takes a callback, AuthlyX calls it after the reply arrives. A name such as result inside that callback is created there; you do not declare it at the top of your file. For C++ futures, Python or JavaScript await, Java futures, Go errors and Rust ?, read Results.

app.registerUser("YOUR_USERNAME", "YOUR_PASSWORD", "YOUR_LICENSE_KEY", result =>
{
Console.WriteLine(result.ok ? "Account created" : result.message);
});

A license can only be used for registration once. A successful registration consumes the unused license and creates a username identity linked to it.