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

# AuthManager

> Kotlin Interface

**Interface**

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

## Functions

| Function | Description                                                                                   |
| -------- | --------------------------------------------------------------------------------------------- |
| `getJWT` | Returns the current JWT for use as a Bearer token in API calls, or null if not authenticated. |
| `logout` | Signs the user out and clears all stored auth state.                                          |
| `setJWT` | Stores an externally obtained JWT for use in API calls.                                       |

### getJWT

```kotlin theme={null}
abstract suspend fun getJWT(): String?
```

Returns the current JWT for use as a Bearer token in API calls, or null if not authenticated.

### logout

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

Signs the user out and clears all stored auth state.

### setJWT

```kotlin theme={null}
abstract fun setJWT(jwt: String)
```

Stores an externally obtained JWT for use in API calls.
