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

# deauthorize(completion:)

Invalidates a previously authorized right.

## Declaration

```swift
func deauthorize(completion handler: @escaping @Sendable () -> Void)
```

```swift
func deauthorize() async
```

## 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 deauthorize() async For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously.
