AppleHandler

@MainActor
@objc
public final class AppleHandler : NSObject, @preconcurrency IdpHandler, Sendable

IdpHandler for Apple

  • Token type for the IdpHandler.

    Declaration

    Swift

    @MainActor
    public var tokenType: String
  • authorize(idpClient:) Asynchronous

    Authorizes the user with the IDP, based on the IdpClient.

    Throws

    An error if the authorization fails or if the token is missing.

    Declaration

    Swift

    @MainActor
    public func authorize(idpClient: IdpClient) async throws -> IdpResult

    Parameters

    idpClient

    The IdpClient instance used to initiate the authorization flow.

    Return Value

    An IdpResult object containing the result of the authorization.

  • Declaration

    Swift

    @MainActor
    public static let acceptsJSON: String