Skip to content

Commit

Permalink
method and class exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayush Awasthi committed Jan 8, 2019
1 parent c6f1979 commit e073538
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions KiwiPods/Social/Google/GoogleHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e073538

Please sign in to comment.