<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVRouting",
  "identifier" : "/documentation/AVRouting/AVCustomRoutingController/invalidateAuthorization(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVRouting"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCustomRoutingController(im)invalidateAuthorizationForRoute:"
  },
  "title" : "invalidateAuthorization(for:)"
}
-->

# invalidateAuthorization(for:)

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

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

## Parameters

`route`

The route to invalidate authorization for.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)