GoogleHandler

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

A handler class for managing Google Identity Provider (IdP) authorization.

  • The type of token to be used for authorization.

    Declaration

    Swift

    @MainActor
    public var tokenType: String
  • Declaration

    Swift

    @discardableResult
    @MainActor
    public static func handleOpenURL(_ app: UIApplication, url: URL, options: [UIApplication.OpenURLOptionsKey : Any]?) -> Bool
  • 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

    Parameters

    idpClient

    The IdpClient to use for authorization.

    Return Value

    An IdpResult object containing the result of the authorization.