> For the complete documentation index, see [llms.txt](https://ailens-organization.gitbook.io/virto-connect/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ailens-organization.gitbook.io/virto-connect/basics/virto-connect-component.md).

# virto-connect Component

## Properties

| Property     | Type   | Description                             | Required |
| ------------ | ------ | --------------------------------------- | -------- |
| server       | string | Backend URL for registration and login  | Yes      |
| provider-url | string | Blockchain node URL (ws\:// or wss\://) | Yes      |

## Methods

| Method                  | Description                              | Parameters        |
| ----------------------- | ---------------------------------------- | ----------------- |
| initSDK()               | Initializes the SDK with configured URLs | None              |
| open()                  | Opens the authentication dialog          | None              |
| close()                 | Closes the authentication dialog         | None              |
| setSessionId(sessionId) | Sets an external session ID              | sessionId: string |

## Events

| Event            | Description                         | Detail       |
| ---------------- | ----------------------------------- | ------------ |
| register-start   | Registration process begins         | None         |
| register-success | Registration completed successfully | { address }  |
| register-error   | Error during registration           | { error }    |
| login-start      | Login process begins                | None         |
| login-success    | Login completed successfully        | { username } |
| login-error      | Error during login                  | { error }    |
