---
title: "deauthorize(_:)"
framework: securityinterface
role: symbol
role_heading: Instance Method
path: "securityinterface/sfauthorizationview/deauthorize(_:)"
---

# deauthorize(_:)

Sets the authorization state to unauthorized and locks the lock icon in the view.

## Declaration

```swift
func deauthorize(_ inSender: Any!) -> Bool
```

## Parameters

- `inSender`: The authorization view to lock.

## Discussion

Discussion If this method succeeds, it returns true; if it fails, the lock icon remains unlocked and the method returns false.

## See Also

### Setting the authorization state

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