---
title: "registerSmartCard(tokenID:promptMessage:)"
framework: CryptoTokenKit
role: symbol
role_heading: Instance Method
platforms: [iOS 26.0+, iPadOS 26.0+, Mac Catalyst 26.0+, visionOS 26.0+]
path: "cryptotokenkit/tksmartcardtokenregistrationmanager/registersmartcard(tokenid:promptmessage:)"
---

# registerSmartCard(tokenID:promptMessage:)

Registers a smartcard with a specific token ID.

## Declaration

```swift
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.
