> ## Documentation Index
> Fetch the complete documentation index at: https://crossmint-devin-1787949784-wallet-docs-two-concept-model.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CrossmintAuthManager

> Swift Class

**Class**

```swift theme={null}
actor CrossmintAuthManager
```

## Initializers

### init(apiKey:)

```swift theme={null}
convenience init(apiKey apiKeyString: String) throws
```

### init(authService:secureStorage:)

```swift theme={null}
init(authService: any AuthService, secureStorage: any SecureStorage)
```

## Instance Properties

| Property               | Type                   | Description                       |
| ---------------------- | ---------------------- | --------------------------------- |
| `authenticationStatus` | `AuthenticationStatus` | -                                 |
| `email`                | `String?`              | -                                 |
| `jwt`                  | `String?`              | Inherited from `AuthManager.jwt`. |

## Instance Methods

### confirmEmailOtp(email:code:)

```swift theme={null}
func confirmEmailOtp(email: String, code: String) async throws(AuthManagerError) -> OTPAuthenticationStatus
```

### logout()

```swift theme={null}
func logout() async throws(AuthManagerError) -> OTPAuthenticationStatus
```

### oneTimeSecretAuthentication(oneTimeSecret:)

```swift theme={null}
func oneTimeSecretAuthentication(oneTimeSecret: String) async throws(AuthManagerError) -> OTPAuthenticationStatus
```

### reset()

```swift theme={null}
func reset() async -> OTPAuthenticationStatus
```

### sendEmailOtp(email:)

```swift theme={null}
func sendEmailOtp(email: String) async throws(AuthManagerError)
```

### setJWT(\_:)

Inherited from `AuthManager.setJWT(_:)`.

```swift theme={null}
func setJWT(_ jwt: String) async
```
