# AccountLoginCommands

# AccountLoginCommands


```
@Generated(value = ["GoogleHomePlatformCodegen"])
interface AccountLoginCommands
```

<br />

Known direct subclasses [AccountLogin](https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLogin)

|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLogin` | API for the AccountLogin trait. |

*** ** * ** ***

Commands for the AccountLogin trait.

## Summary

| ### Public functions |
|---|---|
| `suspend https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.GetSetupPinCommand.Response` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#getSetupPin(kotlin.String)(tempAccountIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Determine if the active user account of the given content app matches the active user account of the given commissionee, and if it does, return a setup PIN which can be used to establish a password-authenticated session with the commissionee. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.GetSetupPinCommand.Response>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#getSetupPinBatchable(kotlin.String)(tempAccountIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#getSetupPin(kotlin.String)` command. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#login(kotlin.String,kotlin.String,kotlin.Function1)( tempAccountIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, setupPin: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.LoginCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html )` Allow the content app to assume the user account of the given commissionee by leveraging the setup PIN input by the user during the commissioning process. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#loginBatchable(kotlin.String,kotlin.String,kotlin.Function1)( tempAccountIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, setupPin: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.LoginCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html )` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#login(kotlin.String,kotlin.String,kotlin.Function1)` command. |
| `suspend https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#logout(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.LogoutCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` Instruct the content app to clear the current user account and end the user session. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#logoutBatchable(kotlin.Function1)(optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.LogoutCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#logout(kotlin.Function1)` command. |

## Public functions

### getSetupPin

```
suspend fun getSetupPin(tempAccountIdentifier: String): AccountLoginTrait.GetSetupPinCommand.Response
```

Determine if the active user account of the given content app matches the active user account of the given commissionee, and if it does, return a setup PIN which can be used to establish a password-authenticated session with the commissionee.

| Parameters |
|---|---|
| `tempAccountIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The client's temporary account identifier. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.GetSetupPinCommand.Response` | Contains the setup PIN. |

### getSetupPinBatchable

```
fun getSetupPinBatchable(tempAccountIdentifier: String): BatchableCommand<AccountLoginTrait.GetSetupPinCommand.Response>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#getSetupPin(kotlin.String)` command.

Determine if the active user account of the given content app matches the active user account of the given commissionee, and if it does, return a setup PIN which can be used to establish a password-authenticated session with the commissionee.

| Parameters |
|---|---|
| `tempAccountIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The client's temporary account identifier. |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.GetSetupPinCommand.Response>` | BatchableCommand |

### login

```
suspend fun login(
    tempAccountIdentifier: String,
    setupPin: String,
    optionalArgs: AccountLoginTrait.LoginCommand.OptionalArgs.() -> Unit = {}
): Unit
```

Allow the content app to assume the user account of the given commissionee by leveraging the setup PIN input by the user during the commissioning process.

| Parameters |
|---|---|
| `tempAccountIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The client's temporary account identifier. |
| `setupPin: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The setup PIN. |
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.LoginCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

### loginBatchable

```
fun loginBatchable(
    tempAccountIdentifier: String,
    setupPin: String,
    optionalArgs: AccountLoginTrait.LoginCommand.OptionalArgs.() -> Unit = {}
): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#login(kotlin.String,kotlin.String,kotlin.Function1)` command.

Allow the content app to assume the user account of the given commissionee by leveraging the setup PIN input by the user during the commissioning process.

| Parameters |
|---|---|
| `tempAccountIdentifier: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The client's temporary account identifier. |
| `setupPin: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | The setup PIN. |
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.LoginCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |

### logout

```
suspend fun logout(optionalArgs: AccountLoginTrait.LogoutCommand.OptionalArgs.() -> Unit = {}): Unit
```

Instruct the content app to clear the current user account and end the user session.

| Parameters |
|---|---|
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.LogoutCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

### logoutBatchable

```
fun logoutBatchable(optionalArgs: AccountLoginTrait.LogoutCommand.OptionalArgs.() -> Unit = {}): BatchableCommand<Unit>
```

The batchable version of `https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginCommands#logout(kotlin.Function1)` command.

Instruct the content app to clear the current user account and end the user session.

| Parameters |
|---|---|
| `optionalArgs: https://developers.home.google.com/reference/kotlin/com/google/home/matter/standard/AccountLoginTrait.LogoutCommand.OptionalArgs.() -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html = {}` | Receiver for the optional arguments of this command |

| Returns |
|---|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/BatchableCommand<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html>` | BatchableCommand |