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]?) -> Bool

    Return 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 -> IdpResult

    Return Value

    An IdpResult object containing the result of the authorization.