---
title: ASImportableCredential.Passkey
framework: authenticationservices
role: symbol
role_heading: Structure
path: authenticationservices/asimportablecredential/passkey
---

# ASImportableCredential.Passkey

A type to represent a passkey credential.

## Declaration

```swift
struct Passkey
```

## Overview

Overview This type is a representation of Passkey as defined in the Credential Exchange Format (CXF) specification.

## Topics

### Creating a passkey instance

- [init(credentialID:relyingPartyIdentifier:userName:userDisplayName:userHandle:key:)](authenticationservices/asimportablecredential/passkey/init(credentialid:relyingpartyidentifier:username:userdisplayname:userhandle:key:).md)

### Accessing passkey properties

- [credentialID](authenticationservices/asimportablecredential/passkey/credentialid.md)
- [relyingPartyIdentifier](authenticationservices/asimportablecredential/passkey/relyingpartyidentifier.md)
- [userName](authenticationservices/asimportablecredential/passkey/username.md)
- [userDisplayName](authenticationservices/asimportablecredential/passkey/userdisplayname.md)
- [userHandle](authenticationservices/asimportablecredential/passkey/userhandle.md)
- [key](authenticationservices/asimportablecredential/passkey/key.md)

### Initializers

- [init(credentialID:relyingPartyIdentifier:userName:userDisplayName:userHandle:key:fido2Extensions:)](authenticationservices/asimportablecredential/passkey/init(credentialid:relyingpartyidentifier:username:userdisplayname:userhandle:key:fido2extensions:).md)

### Instance Properties

- [fido2Extensions](authenticationservices/asimportablecredential/passkey/fido2extensions.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Login credential types

- [ASImportableCredential.basicAuthentication(_:)](authenticationservices/asimportablecredential/basicauthentication(_:).md)
- [ASImportableCredential.BasicAuthentication](authenticationservices/asimportablecredential/basicauthentication.md)
- [ASImportableCredential.passkey(_:)](authenticationservices/asimportablecredential/passkey(_:).md)
- [ASImportableCredential.totp(_:)](authenticationservices/asimportablecredential/totp(_:).md)
- [ASImportableCredential.TOTP](authenticationservices/asimportablecredential/totp.md)
