---
title: "checkCanAuthorize(completion:)"
framework: localauthentication
role: symbol
role_heading: Instance Method
path: "localauthentication/laright/checkcanauthorize(completion:)"
---

# checkCanAuthorize(completion:)

Checks whether the right has permission to perform authorization.

## Declaration

```swift
func checkCanAuthorize(completion handler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func checkCanAuthorize() async throws
```

## Parameters

- `handler`: A completion handler called when the authorization check finishes.

## Discussion

Discussion important: You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration: func checkCanAuthorize() async throws For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously.

## See Also

### Monitoring authorization status

- [state](localauthentication/laright/state-swift.property.md)
- [LARight.State](localauthentication/laright/state-swift.enum.md)
