Initializer

init(url:callbackURLScheme:completionHandler:)

Creates a web authentication session instance.

Declaration

init(url URL: URL, callbackURLScheme: String?, completionHandler: @escaping ASWebAuthenticationSession.CompletionHandler)

Parameters

URL

A URL with the http or https scheme pointing to the authentication webpage.

callbackURLScheme

The custom URL scheme that the app expects in the callback URL.

completionHandler

A completion handler the session calls when it completes successfully, or when the user cancels the session.

See Also

Creating a Session

typealias ASWebAuthenticationSession.CompletionHandler

A completion handler for the web authentication session.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software