---
title: "stop(reason:)"
framework: networkextension
role: symbol
role_heading: Instance Method
path: "networkextension/nehotspotauthenticationprovider/stop(reason:)"
---

# stop(reason:)

Tells the exension to stop the authentication provider, in response to a request from the framework.

## Declaration

```swift
func stop(reason: NEProviderStopReason) async
```

## Parameters

- `reason`: The reason for stopping the provider.

## Discussion

Discussion Perform any needed shutdown tasks in your implementation of this method. After stopping, the provider receives no further commands from the framework.

## See Also

### Managing provider life cycle

- [start()](networkextension/nehotspotauthenticationprovider/start().md)
- [NEProviderStopReason](networkextension/neproviderstopreason.md)
