---
title: "authenticationSessionRequest(_:didCompleteWithCallbackURL:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/aswebauthenticationsessionrequestdelegate/authenticationsessionrequest(_:didcompletewithcallbackurl:)"
---

# authenticationSessionRequest(_:didCompleteWithCallbackURL:)

Tells the delegate, typically a browser, that the authentication completed successfully.

## Declaration

```swift
optional func authenticationSessionRequest(_ authenticationSessionRequest: ASWebAuthenticationSessionRequest, didCompleteWithCallbackURL callbackURL: URL)
```

## Parameters

- `authenticationSessionRequest`: The request sending the message.
- `callbackURL`: A URL using the scheme indicated by the request’s doc://com.apple.authenticationservices/documentation/AuthenticationServices/ASWebAuthenticationSessionRequest/callbackURLScheme property that indicates the outcome of the authentication attempt.

## See Also

### Responding to Completion Events

- [authenticationSessionRequest(_:didCancelWithError:)](authenticationservices/aswebauthenticationsessionrequestdelegate/authenticationsessionrequest(_:didcancelwitherror:).md)
