---
title: "complete(withCallbackURL:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/aswebauthenticationsessionrequest/complete(withcallbackurl:)"
---

# complete(withCallbackURL:)

Indicates that the browser successfully completed the authentication attempt.

## Declaration

```swift
func complete(withCallbackURL url: URL)
```

## Parameters

- `url`: 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.

## Mentioned in

Supporting Single Sign-On in a Web Browser App

## Discussion

Discussion Call this method from your browser app when the authentication attempt completes to report the result of the attempt using the callback URL.

## See Also

### Finishing a request

- [callback](authenticationservices/aswebauthenticationsessionrequest/callback.md)
- [ASWebAuthenticationSession.Callback](authenticationservices/aswebauthenticationsession/callback.md)
- [cancelWithError(_:)](authenticationservices/aswebauthenticationsessionrequest/cancelwitherror(_:).md)
