<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoTokenKit",
  "identifier" : "/documentation/CryptoTokenKit/TKSmartCardTokenRegistrationManager/registerSmartCard(tokenID:promptMessage:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TKSmartCardTokenRegistrationManager(im)registerSmartCardWithTokenID:promptMessage:error:"
  },
  "title" : "registerSmartCard(tokenID:promptMessage:)"
}
-->

# registerSmartCard(tokenID:promptMessage:)

Registers a smartcard with a specific token ID.

```
func registerSmartCard(tokenID: String, promptMessage: String) throws
```

## Parameters

`tokenID`

ID of the smartcard

`promptMessage`

Message that will be shown in the presented system UI when an operation with this smartcard is requested.

## Discussion\discussion In case the same tokenID is already registered, the registration data are overwritten.
In case the smartcard with provided tokenID isn’t found in the system, failure is returned.

---

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)