Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions Sources/OAuthenticator/WebAuthenticationSession+Utility.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#if canImport(AuthenticationServices)
import AuthenticationServices
// It is not 100% clear why a plain import of "AuthenticationServices" does not work here,
// but in some cases/configuration it appears to fail.
#if canImport(_AuthenticationServices_SwiftUI)
import _AuthenticationServices_SwiftUI
import SwiftUI


@available(macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4, *)
@available(macOS 13.3, iOS 16.4, macCatalyst 16.4, watchOS 9.4, tvOS 16.4, *)
extension WebAuthenticationSession {
public func userAuthenticator(preferredBrowserSession: BrowserSession? = nil) -> Authenticator.UserAuthenticator {
return {
Expand Down
Loading