---
title: cancel()
framework: safariservices
role: symbol
role_heading: Instance Method
path: safariservices/sfauthenticationsession/cancel()
---

# cancel()

Cancels the currently running session when the consent dialog is up or when the webpage is up. This is how applications stop the login process.

## Declaration

```swift
func cancel()
```

## See Also

### Instance Methods

- [start()](safariservices/sfauthenticationsession/start().md)
