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

# SeamCredentialError

> A credential error is an error that is related to a credential.

> Auto-generated from the Seam Android SDK Kotlin sources. Do not edit by hand — see `mintlify-codegen/android-reference/`.

## Overview

```kotlin theme={null}
sealed class SeamCredentialError : SeamError()
```

A credential error is an error that is related to a credential. When a credential error
occurs, it means that the credential is not valid or has some issues. It can be thrown when
trying to unlock with a credential, or they can come in the `SeamCredential.errors` list.

***

## Cases

### `Loading`

The credential is still loading. This error is usually thrown when trying to unlock
with a credential that was not fully loaded.

```kotlin theme={null}
class Loading : SeamCredentialError()
```

### `Expired`

The credential has expired. This error is usually thrown when trying to unlock
with a credential that has expired.

```kotlin theme={null}
class Expired : SeamCredentialError()
```

### `UserInteractionRequired`

The credential requires user interaction to be unlocked. This error is usually thrown
when trying to unlock a credential that requires user interaction, such as completing
an OTP authorization or enabling Bluetooth.

```kotlin theme={null}
data class UserInteractionRequired(
```

**Parameters**

| Parameter     | Description                   |
| ------------- | ----------------------------- |
| `interaction` | the required user interaction |

### `Unknown`

An unknown credential error occurred.

```kotlin theme={null}
class Unknown : SeamCredentialError()
```
