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

# DefaultAuthService

> Swift Class

**Class**

```swift theme={null}
final class DefaultAuthService
```

## Initializers

### init(crossmintService:jsonCoder:)

```swift theme={null}
init(crossmintService: any CrossmintService, jsonCoder: any JSONCoder = DefaultJSONCoder())
```

## Instance Properties

### jsonCoder

```swift theme={null}
let jsonCoder: any JSONCoder
```

## Instance Methods

### logout(\_:)

Inherited from `AuthService.logout(_:)`.

```swift theme={null}
func logout(_ logoutRequest: LogoutRequest) async throws(AuthError)
```

### refreshJWT(\_:)

Inherited from `AuthService.refreshJWT(_:)`.

```swift theme={null}
func refreshJWT(_ refreshJWTRequest: RefreshJWTRequest) async throws(AuthError) -> RefreshJWTResponse
```

### validateEmail(\_:)

Inherited from `AuthService.validateEmail(_:)`.

```swift theme={null}
func validateEmail(_ validateEmailRequest: ValidateEmailRequest) async throws(AuthError) -> ValidateEmailResponse
```

### validateToken(\_:)

Inherited from `AuthService.validateToken(_:)`.

```swift theme={null}
func validateToken(_ validateTokenRequest: ValidateTokenRequest) async throws(AuthError) -> ValidateTokenResponse
```
