---
title: "logout(withExpectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusteraccountlogin/logout(withexpectedvalues:expectedvalueinterval:completionhandler:)"
---

# logout(withExpectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func logout(withExpectedValues expectedValues: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func logout(withExpectedValues expectedValues: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
