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

# IdentityVerificationCredentials

> Swift Structure

**Structure**

The credentials for one identity verification session.

```swift theme={null}
struct IdentityVerificationCredentials
```

An order that needs verification includes them in `payment.preparation.kyc`. Read the credentials from `identityVerificationCredentials`. You can also read them from the order response of your backend.

## Initializers

### init(from:)

Inherited from `Decodable.init(from:)`.

```swift theme={null}
init(from decoder: Decoder) throws
```

### init(inquiryId:sessionToken:)

Creates the credentials.

```swift theme={null}
init(inquiryId: String, sessionToken: String? = nil)
```

An empty `sessionToken` becomes `nil`.

## Instance Properties

| Property       | Type      | Description                                                        |
| -------------- | --------- | ------------------------------------------------------------------ |
| `id`           | `String`  | The stable identity of the credentials, equal to `inquiryId`.      |
| `inquiryId`    | `String`  | The identifier of the verification inquiry at the provider.        |
| `provider`     | `String`  | The verification provider. Persona is the only supported provider. |
| `sessionToken` | `String?` | The token that resumes an inquiry the buyer started before.        |

## Instance Methods

### encode(to:)

Inherited from `Encodable.encode(to:)`.

```swift theme={null}
func encode(to encoder: Encoder) throws
```
