> This page is for version V2 - Legacy.
> For other versions, use one of these documentation indexes:
> - V3 - Beta (default): https://docs.authlyx.dev/v3/llms.txt
> - V2 - Legacy: https://docs.authlyx.dev/v2/llms.txt
> - V1 - End of support: https://docs.authlyx.dev/v1/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.authlyx.dev/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.authlyx.dev/_mcp/server.

# Sign-in and results

> AuthlyX V2: sign-in and results.

## Initialize and read the result

This is the old C# contract, not the V3 callback contract:

```csharp
app.Init();

if (app.response.success)
{
    Console.WriteLine("Connected");
}
else
{
    Console.WriteLine(app.response.message);
}
```

## Sign in

```csharp
app.Login(username, password);

if (app.response.success)
{
    Console.WriteLine("Signed in");
}
else
{
    Console.WriteLine(app.response.message);
}
```

`username` and `password` are strings from your own form or console input. Read the response immediately after the operation: the next operation replaces the shared response.

The synchronous calls wait for the network. Use the callback overload on a desktop UI instead of blocking its UI thread. Do not run overlapping operations against the legacy shared response.

For direct HTTP calls, use each endpoint's documented response. Do not expect V3's `result.ok` or installation proof fields in a V2 response.