Type Alias

SFAuthenticationSession.CompletionHandler

The completion handler for an authentication session when the user cancels or finishes the login.

Declaration

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

Discussion

The custom callback URL should only be a custom URL scheme, and not a standard scheme (e.g. http or https). The session looks at the scheme registered first and routes to the app asking to start a session before potentially routing the scheme to another app.

See Also

Safari Content Display in Your App

class SFSafariViewController

An object that provides a visible standard interface for browsing the web.

class SFAuthenticationSession

A class that manages sharing a one-time login between Safari and an app, which can also be used for automatic login for associated apps.

Deprecated