---
url: >-
  https://game-engine-io.github.io/enginex-frontend-sdk/reference/api/@getenginex/sdk/type-aliases/LoginResult.md
---
[Reference](../../../index.md) / [@getenginex/sdk](../index.md) / LoginResult

# LoginResult

> **LoginResult** = { `operatorId`: `string`; `status`: `"authenticated"`; `userId`: `string`; } | { `status`: `"2fa_required"`; }

Login result.

## Union Members

### Type Literal

{ `operatorId`: `string`; `status`: `"authenticated"`; `userId`: `string`; }

#### operatorId

> **operatorId**: `string`

Operator id.

#### status

> **status**: `"authenticated"`

Login completed; the session is already active.

#### userId

> **userId**: `string`

Id of the authenticated user.

***

### Type Literal

{ `status`: `"2fa_required"`; }

#### status

> **status**: `"2fa_required"`

Login requires the 2FA code; repeat the call with `twoFactorCode`.
