<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecureElementCredential",
  "identifier" : "/documentation/SecureElementCredential/CredentialSession/configuration()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SecureElementCredential",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:23SecureElementCredential0C7SessionC01_abC8_SwiftUIE13configurationAD0C11TransactionC13ConfigurationCyYaKF"
  },
  "title" : "configuration()"
}
-->

# configuration()

Retrieves a transaction configuration related to this session.

```
nonisolated func configuration() async throws -> CredentialTransaction.Configuration
```

## Discussion

This method provides a way to get the session configuration after performing a transaction task with a SwiftUI view.

Clients should call [`invalidate()`](/documentation/SecureElementCredential/CredentialTransaction/Configuration/invalidate()) on this configuration after completing each transaction.

> Warning: Don’t import UIKit in any file that imports this type. This causes ambiguity resolving the ``doc://SecureElementCredential/documentation/SecureElementCredential`` framework’s SwiftUI and UIKit symbols.

---

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)