---
title: configuration()
framework: secureelementcredential
role: symbol
role_heading: Instance Method
path: secureelementcredential/credentialsession/configuration()
---

# configuration()

Retrieves a transaction configuration related to this session.

## Declaration

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

## Discussion

Discussion This method provides a way to get the session configuration after performing a transaction task with a SwiftUI view. Clients should call 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 SecureElementCredential framework’s SwiftUI and UIKit symbols.

## See Also

### Using SwiftUI

- [CredentialTransaction.Configuration](secureelementcredential/credentialtransaction/configuration.md)
