# Wait-IntelligenceXLogin

Waits for the login flow to complete.

Command 

**Module**

`IntelligenceX.PowerShell`

**Inputs**

`IntelligenceX.OpenAI.IntelligenceXClient`

Waits for the login flow to complete.

## Syntax

```
Wait-IntelligenceXLogin
[-Client <IntelligenceXClient>]
[-LoginId <string>]
[-TimeoutSeconds <int>]
[<CommonParameters>]
```

[#](#method-wait-intelligencexlogin-intelligencexclient-string-int)

## Examples

### Example 1

```powershell
Wait-IntelligenceXLogin
```

Wait for the current login to finish

### Example 2

```powershell
Wait-IntelligenceXLogin -LoginId $login.LoginId -TimeoutSeconds 120
```

Wait for a specific login with a shorter timeout

### Example 3

```powershell
$login = Start-IntelligenceXChatGptLogin; Wait-IntelligenceXLogin -LoginId $login.LoginId
```

Start and wait in one flow

## Parameters

**-Client IntelligenceXClient optionalpipeline: true (ByValue)**

Client instance to use. Defaults to the active client.

**-LoginId string optional**

Optional login identifier to wait for.

**-TimeoutSeconds int optional**

Maximum wait time in seconds before cancellation.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:660E9BC0AB7C3B103DB5FFAAAE65960A1DF47963FBF298A9FC19FA426329FCA1 -->
