> ## 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.

# AuthService

> Kotlin Interface

**Interface**

```kotlin theme={null}
interface AuthService
```

## Functions

| Function       | Description |
| -------------- | ----------- |
| `logout`       | -           |
| `refreshToken` | -           |
| `sendOtp`      | -           |
| `verifyOtp`    | -           |

### logout

```kotlin theme={null}
abstract suspend fun logout(refreshToken: String): Result<Unit, AuthError>
```

### refreshToken

```kotlin theme={null}
abstract suspend fun refreshToken(oneTimeSecret: String): Result<AuthToken, AuthError>
```

### sendOtp

```kotlin theme={null}
abstract suspend fun sendOtp(email: String): Result<SendOtpResponse, AuthError>
```

### verifyOtp

```kotlin theme={null}
abstract suspend fun verifyOtp(email: String, code: String, state: String): Result<VerifyOtpResponse, AuthError>
```
