# UserAccount.FederatedAccount

# UserAccount.FederatedAccount


```
class UserAccount.FederatedAccount : UserAccount
```

<br />

*** ** * ** ***

A federated account associated with a `https://developers.home.google.com/reference/kotlin/com/google/home/HomeClientWithProvidedAccount`.

Note: `https://developers.home.google.com/reference/kotlin/com/google/home/UserAccount.FederatedAccount` equality is based solely on the `https://developers.home.google.com/reference/kotlin/com/google/home/UserAccount.FederatedAccount#jwt()` property.

## Summary

| ### Public constructors |
|---|
| `https://developers.home.google.com/reference/kotlin/com/google/home/UserAccount.FederatedAccount#FederatedAccount(kotlin.String,kotlin.coroutines.SuspendFunction0)(jwt: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html, refreshJwt: suspend () -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/UserAccount.FederatedAccount#equals(kotlin.Any)(other: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/UserAccount.FederatedAccount#hashCode()()` |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/UserAccount.FederatedAccount#jwt()` The JSON Web Token (JWT) representing the user account. |
| `suspend () -> https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html` | `https://developers.home.google.com/reference/kotlin/com/google/home/UserAccount.FederatedAccount#refreshJwt()` A suspend function to refresh the JWT when it expires, returning the new JWT. |

## Public constructors

### FederatedAccount

```
FederatedAccount(jwt: String, refreshJwt: suspend () -> String)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

## Public properties

### jwt

```
val jwt: String
```

The JSON Web Token (JWT) representing the user account.

### refreshJwt

```
val refreshJwt: suspend () -> String
```

A suspend function to refresh the JWT when it expires, returning the new JWT.