diff --git a/KiwiPods/Social/Google/GoogleHandler.swift b/KiwiPods/Social/Google/GoogleHandler.swift index 3a3ab18..4d05279 100644 --- a/KiwiPods/Social/Google/GoogleHandler.swift +++ b/KiwiPods/Social/Google/GoogleHandler.swift @@ -8,15 +8,15 @@ import UIKit import GoogleSignIn -class GoogleHandler: NSObject { - static let `shared` = GoogleHandler() +open class GoogleHandler: NSObject { + static public let `shared` = GoogleHandler() override private init() { super.init() GIDSignIn.sharedInstance()?.delegate = self } fileprivate var loginCompletion: ((String?, Error?) -> Void)? fileprivate var loginHandlerController: UIViewController? - func getUser(from controller: UIViewController, completion: @escaping (_ token: String?, _ error: Error?) -> Void) { + public func getUser(from controller: UIViewController, completion: @escaping (_ token: String?, _ error: Error?) -> Void) { if let user = GIDSignIn.sharedInstance()?.currentUser { loginCompletion = nil completion(user.authentication.idToken, nil)