---
title: "authorizationViewShouldDeauthorize(_:)"
framework: objectivec
role: symbol
role_heading: Instance Method
path: "objectivec/nsobject-swift.class/authorizationviewshoulddeauthorize(_:)"
---

# authorizationViewShouldDeauthorize(_:)

Sent to the delegate when a user clicks the open lock icon.

## Declaration

```swift
func authorizationViewShouldDeauthorize(_ view: SFAuthorizationView!) -> Bool
```

## Discussion

Discussion The delegate can react to this before deauthorization happens and avoid it by returning NO. This delegate method is not called when you call the deauthorize(_:) method.

## See Also

### Related Documentation

- [deauthorize(_:)](securityinterface/sfauthorizationview/deauthorize(_:).md)
