---
title: "invalidateAuthorization(for:)"
framework: avrouting
role: symbol
role_heading: Instance Method
path: "avrouting/avcustomroutingcontroller/invalidateauthorization(for:)"
---

# invalidateAuthorization(for:)

Revokes an app’s authorization to connect to a route.

## Declaration

```swift
func invalidateAuthorization(for route: AVCustomDeviceRoute)
```

## Parameters

- `route`: The route to invalidate authorization for.

## Discussion

Discussion The route only becomes authorized again if the user selects it using the route picker.

## See Also

### Managing authorization

- [authorizedRoutes](avrouting/avcustomroutingcontroller/authorizedroutes.md)
- [authorizedRoutesDidChange](avrouting/avcustomroutingcontroller/authorizedroutesdidchange.md)
