One Logo Pool Ball
AuthenticationServices · IOS API REFERENCE

ASVerificationCode

struct · iOS 27.0+ · SDK 27.1

struct ASVerificationCode

This is an instance of a verification code. It represents a code at a specific point in time.

Members (11)

get · iOS 27.0+

embeddedDomains

TypeScript
get embeddedDomains(): Array<string>
Swift declaration
var embeddedDomains: [String]

Embedded page or frame domains. For domain-bound codes, this array contains all the domains specified after the code field. - SeeAlso: https://github.com/WICG/sms-one-time-codes

set · iOS 27.0+

embeddedDomains

TypeScript
set embeddedDomains(value: Array<string>)
Swift declaration
var embeddedDomains: [String]

Embedded page or frame domains. For domain-bound codes, this array contains all the domains specified after the code field. - SeeAlso: https://github.com/WICG/sms-one-time-codes

get · iOS 27.0+

id

TypeScript
get id(): string
Swift declaration
var id: UUID

The stable identity of the entity associated with this instance.

set · iOS 27.0+

id

TypeScript
set id(value: string)
Swift declaration
var id: UUID

The stable identity of the entity associated with this instance.

init · iOS 27.0+

init

TypeScript
static init(code: string, timestamp: globalThis.Date, domain?: (string) | null, embeddedDomains?: Array<string>, id?: string): ASVerificationCode
Swift declaration
init(code: String, timestamp: Date, domain: String? = nil, embeddedDomains: [String] = [], id: UUID = UUID())
get · iOS 27.0+

code

TypeScript
get code(): string
Swift declaration
var code: String

The system’s best understanding of the code that can be used for verification purposes. This code may be detected from heuristics or parsed from a well-known format.

set · iOS 27.0+

code

TypeScript
set code(value: string)
Swift declaration
var code: String

The system’s best understanding of the code that can be used for verification purposes. This code may be detected from heuristics or parsed from a well-known format.

get · iOS 27.0+

domain

TypeScript
get domain(): (string) | null
Swift declaration
var domain: String?

The domain associated with the code, if one exists. - SeeAlso: https://github.com/WICG/sms-one-time-codes

set · iOS 27.0+

domain

TypeScript
set domain(value: (string) | null)
Swift declaration
var domain: String?

The domain associated with the code, if one exists. - SeeAlso: https://github.com/WICG/sms-one-time-codes

get · iOS 27.0+

timestamp

TypeScript
get timestamp(): globalThis.Date
Swift declaration
var timestamp: Date

Date when the message was received by the device.

set · iOS 27.0+

timestamp

TypeScript
set timestamp(value: globalThis.Date)
Swift declaration
var timestamp: Date

Date when the message was received by the device.

Skipped declarations

No declarations were skipped in this snapshot.

All AuthenticationServices types →