<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecureElementCredential",
  "identifier" : "/documentation/SecureElementCredential/CredentialTransaction/Configuration/invalidate()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SecureElementCredential",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:32_SecureElementCredential_SwiftUI0C11TransactionC13ConfigurationC10invalidateyyYaKF"
  },
  "title" : "invalidate()"
}
-->

# invalidate()

Invalidates the configuration and transitions the underlying session state to management.

```
func invalidate() async throws
```

## Discussion

Call `invalidate()` in the closure passed to <doc://com.apple.documentation/documentation/SwiftUI/View/transactionTask(_:action:)> when you complete your wired transaction or card emulation. Your app is responsible for invalidating any wired or card emulation state by calling this method.

---

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)