> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# FailureAwareSessionStore

> Kotlin Interface

**Interface**

```kotlin theme={null}
interface FailureAwareSessionStore : SessionStore
```

## Functions

| Function    | Description                                                                                                                                                                    |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `clear`     | -                                                                                                                                                                              |
| `hasFailed` | Returns true if this store has encountered a failure and should no longer be used. Once this returns true, it should continue to return true for the lifetime of the instance. |
| `token`     | -                                                                                                                                                                              |
| `update`    | -                                                                                                                                                                              |

### clear

```kotlin theme={null}
abstract suspend fun clear()
```

### hasFailed

```kotlin theme={null}
abstract fun hasFailed(): Boolean
```

Returns true if this store has encountered a failure and should no longer be used. Once this returns true, it should continue to return true for the lifetime of the instance.

### token

```kotlin theme={null}
abstract suspend fun token(): AuthToken?
```

### update

```kotlin theme={null}
abstract suspend fun update(token: AuthToken?)
```
