---
title: ASWebAuthenticationSession.CompletionHandler
framework: authenticationservices
role: symbol
role_heading: Type Alias
path: authenticationservices/aswebauthenticationsession/completionhandler
---

# ASWebAuthenticationSession.CompletionHandler

A completion handler for the web authentication session.

## Declaration

```swift
typealias CompletionHandler = (URL?, (any Error)?) -> Void
```

## See Also

### Creating a session

- [init(url:callback:completionHandler:)](authenticationservices/aswebauthenticationsession/init(url:callback:completionhandler:)-6nut7.md)
- [ASWebAuthenticationSession.Callback](authenticationservices/aswebauthenticationsession/callback.md)
