authenticate(using:callbackURLScheme:preferredBrowserSession:)
Begins a web authentication session.
Declaration
@MainActor func authenticate(using url: URL, callbackURLScheme: String, preferredBrowserSession: WebAuthenticationSession.BrowserSession? = nil) async throws -> URLParameters
- url:
A URL beginning with HTTP or HTTPS that points to the authentication webpage.
- callbackURLScheme:
The app’s custom callback scheme.
- preferredBrowserSession:
The preferred data-sharing behavior of the browser session. For more information, see Browsersession.
Return Value
The URL that the authentication provider returns.