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 -> IdpResultParameters
idpClientThe
IdpClientto use for authorization.Return Value
An
IdpResultobject containing the result of the authorization.
View on GitHub