---
title: AuthorizationAsyncCallback
framework: security
role: symbol
role_heading: Type Alias
path: security/authorizationasynccallback
---

# AuthorizationAsyncCallback

A block used as a callback for the asynchronous version of copying authorization rights.

## Declaration

```swift
typealias AuthorizationAsyncCallback = (OSStatus, UnsafeMutablePointer<AuthorizationRights>?) -> Void
```

## Parameters

- `err`: A result code. See doc://com.apple.security/documentation/Security/authorization-services-result-codes. This is equivalent to the return value from the doc://com.apple.security/documentation/Security/AuthorizationCopyRights(_:_:_:_:_:) function.
- `blockAuthorizedRights`: The authorized rights. This is equivalent to the authorizedRights parameter of the doc://com.apple.security/documentation/Security/AuthorizationCopyRights(_:_:_:_:_:) function. Free this object using the doc://com.apple.security/documentation/Security/AuthorizationFreeItemSet(_:) function when you are done with it.

## Discussion

Discussion Use a block of this type as the callback parameter to the AuthorizationCopyRightsAsync(_:_:_:_:_:) function.
