---
title: "login(with:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusteraccountlogin/login(with:completion:)"
---

# login(with:completion:)

## Declaration

```swift
func login(with params: MTRAccountLoginClusterLoginParams, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func login(with params: MTRAccountLoginClusterLoginParams) async throws
```
