Skip to navigation

Initialize

Initialize the SDK before sign-in. It checks the AppKey and version, establishes the installation identity and reads the app update information. It does not sign a user in.

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.initialize(result =>
{
Console.WriteLine(result.ok ? "Connected" : result.message);
});

After initialization, show an update option if the response says a newer version is available. Let your user choose how to get it. The SDK does not silently install the update. See Login after initialization succeeds.