FacebookHandler
@MainActor
@objc
public class FacebookHandler : NSObject, @preconcurrency IdpHandler, Sendable
A handler class for managing Facebook Identity Provider (IdP) authorization.
-
The type of token this handler supports.
Declaration
Swift
@MainActor public var tokenType: String -
Handles the opening of a URL in the application.
Declaration
Swift
@discardableResult @MainActor public static func handleOpenURL(_ app: UIApplication, url: URL, options: [UIApplication.OpenURLOptionsKey : Any]?) -> BoolReturn Value
A boolean indicating whether the URL was handled successfully.
-
authorize(idpClient:Asynchronous) Authorizes the user with the IDP, based on the IdpClient.
Throws
An error if the authorization fails.Declaration
Swift
@MainActor public func authorize(idpClient: IdpClient) async throws -> IdpResultReturn Value
An
IdpResultobject containing the result of the authorization.
View on GitHub