Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GIDSignIn returns "Keychain error"

Tags:

I'm implementing sign in with Google plus. The implementation is basically copied from examples from Developer Google. When I login for the first time all works fine. But if I then logout using

 [[GIDSignIn sharedInstance] signOut]; 

next time I login in I get the

Error Domain=com.google.GIDSignIn Code=-2 "keychain error" 

Please advice what can be done in this situation. Thanks

like image 636
zshcbka Avatar asked Jun 02 '15 16:06

zshcbka


2 Answers

I'm having the same issue here. After doing some tests, i've noticed that if i run my app without the debugger (Build, stop, run app) everything works as expected...try it

like image 87
gafos Avatar answered Sep 20 '22 21:09

gafos


Probably a long shot, but try calling disconnect on the sharedInstance?

- (void)signOut {     [[GIDSignIn sharedInstance] disconnect]; } 
like image 39
Amy Avatar answered Sep 18 '22 21:09

Amy