I\'m having this case where the GIDSignIn.sharedInstance().signInSilently() is returning an error:
Error Domain=com.google.GIDSignIn Code=-4 \"The op
Both Igor and Spydy worked for me
A swift version of Igor's post
GIDSignIn.sharedInstance().uiDelegate = self
GIDSignIn.sharedInstance()?.hasAuthInKeychain()
GIDSignIn.sharedInstance()?.signIn()
// Uncomment to automatically sign in the user.
GIDSignIn.sharedInstance().signInSilently()
or from Spydy.
// google sign in setup
GIDSignIn.sharedInstance().uiDelegate = self
if GIDSignIn.sharedInstance().hasAuthInKeychain() == true{
GIDSignIn.sharedInstance().signInSilently()
}
else{
GIDSignIn.sharedInstance().signIn()
}