---
title: "init(url:callbackURLScheme:completionHandler:)"
framework: safariservices
role: symbol
role_heading: Initializer
path: "safariservices/sfauthenticationsession/init(url:callbackurlscheme:completionhandler:)-55qgp"
---

# init(url:callbackURLScheme:completionHandler:)

Initializes the SFAuthenticationSession in an application.

## Declaration

```swift
init(url URL: URL, callbackURLScheme: String?, completionHandler: @escaping SFAuthenticationSession.CompletionHandler)
```
