17 lines
506 B
Swift
17 lines
506 B
Swift
|
//
|
||
|
// https://mczachurski.dev
|
||
|
// Copyright © 2023 Marcin Czachurski and the repository contributors.
|
||
|
// Licensed under the MIT License.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
import AuthenticationServices
|
||
|
|
||
|
public class AuthorizationSession: NSObject, ObservableObject, ASWebAuthenticationPresentationContextProviding {
|
||
|
public func presentationAnchor(for session: ASWebAuthenticationSession) -> ASPresentationAnchor {
|
||
|
DispatchQueue.main.sync {
|
||
|
return ASPresentationAnchor()
|
||
|
}
|
||
|
}
|
||
|
}
|