As you see in the below, I am getting these errors, I have installed Firebase and GoogleSignIn, what am I doing wrong?
As you see in the below, I am getting these errors, I have installed Firebase and GoogleSignIn, what am I doing wrong?
As pointed out by Chris in the comments, follow the migration guide to update to GoogleSignIn 6.x.
See also this example of migrating the Firebase Auth QuickStart.
If you are using latest GoogleSignIn sdk use this below code on button action
let signInConfig = GIDConfiguration.init(clientID: KGoogle.clientID)
GIDSignIn.sharedInstance.signIn(with: signInConfig, presenting: self) { user, error in
guard error == nil else { return }
guard let user = user else { return }
if let profiledata = user.profile {
let userId : String = user.userID ?? ""
let givenName : String = profiledata.givenName ?? ""
let familyName : String = profiledata.familyName ?? ""
let email : String = profiledata.email
if let imgurl = user.profile?.imageURL(withDimension: 100) {
let absoluteurl : String = imgurl.absoluteString
//HERE CALL YOUR SERVER API
}
}
}