<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialIdentityStore/IdentityTypes",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Authentication Services",
      "AuthenticationServices"
    ],
    "preciseIdentifier" : "c:@E@ASCredentialIdentityTypes"
  },
  "title" : "ASCredentialIdentityStore.IdentityTypes"
}
-->

# ASCredentialIdentityStore.IdentityTypes

The defined identity types for use in retrieving credentials.

```
struct IdentityTypes
```

## Topics

### Working with identity types

[`static var passkey: ASCredentialIdentityStore.IdentityTypes`](/documentation/AuthenticationServices/ASCredentialIdentityStore/IdentityTypes/passkey)

The passkey identity type.

[`static var password: ASCredentialIdentityStore.IdentityTypes`](/documentation/AuthenticationServices/ASCredentialIdentityStore/IdentityTypes/password)

The password identity type.

[`static var oneTimeCode: ASCredentialIdentityStore.IdentityTypes`](/documentation/AuthenticationServices/ASCredentialIdentityStore/IdentityTypes/oneTimeCode)

The one-time code identity type.

### Matching any type

[`ASCredentialIdentityTypesAll`](/documentation/AuthenticationServices/ASCredentialIdentityTypes/ASCredentialIdentityTypesAll)

A value that matches all identity types.

### Working with raw values

[`init(rawValue: UInt)`](/documentation/AuthenticationServices/ASCredentialIdentityStore/IdentityTypes/init(rawValue:))

Creates an instance with the specified raw value.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)