<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASVerificationCode",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "s:22AuthenticationServices18ASVerificationCodeV"
  },
  "title" : "ASVerificationCode"
}
-->

# ASVerificationCode

This is an instance of a verification code.

```
struct ASVerificationCode
```

## Overview

It represents a code at a specific point in time.

## Topics

### Initializers

[`init(code: String, timestamp: Date, domain: String?, embeddedDomains: [String], id: UUID)`](/documentation/AuthenticationServices/ASVerificationCode/init(code:timestamp:domain:embeddedDomains:id:))

### Instance Properties

[`var code: String`](/documentation/AuthenticationServices/ASVerificationCode/code)

The system’s best understanding of the code that can be used for verification purposes.

[`var domain: String?`](/documentation/AuthenticationServices/ASVerificationCode/domain)

The domain associated with the code, if one exists.

[`var embeddedDomains: [String]`](/documentation/AuthenticationServices/ASVerificationCode/embeddedDomains)

Embedded page or frame domains. For domain-bound codes, this array contains all the domains specified after the code field.

[`var timestamp: Date`](/documentation/AuthenticationServices/ASVerificationCode/timestamp)

Date when the message was received by the device.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

[`Identifiable`](/documentation/Swift/Identifiable)

[`Encodable`](/documentation/Swift/Encodable)

[`Decodable`](/documentation/Swift/Decodable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)